Integrating Internet Identity Problem

I have a problem. When I attempt to log in using Internet Identity from the front-end, I receive a principal ID that differs from the one received when I log in from Candid UI using the same identity. Does anyone have an explanation for this discrepancy?

1 Like

This is a default behavior. Internet identity principals are generated based on the url hostname. So, in most cases you will get a different principal for every domain/app. The exception to this is if you set the auth client derivation origin then you could have the same principal for 2 different hostnames.

1 Like

This man is lying to you. It’s a bug in your code. Candid II always matches normal authentication of the app. You need to set aaaaa-aa as the authorized caller for your admin functions (it’s the management canister).

1 Like