Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When linking account, issuer is not my custom domain #161

Open
ajubin opened this issue Jun 28, 2023 · 4 comments
Open

When linking account, issuer is not my custom domain #161

ajubin opened this issue Jun 28, 2023 · 4 comments

Comments

@ajubin
Copy link

ajubin commented Jun 28, 2023

Hi,

I've got a custom domain on my auth0 instance and I use it in my app to verify the token.

As a user, when I want to link account by clicking on "Continue", I'm redirected on the default domain login page.

Hence, the token generated when the account are linked is not issued as the custom domain but as the default one.

So my app fails authenticating the user with the token, throwing the error:
Issuer (iss) claim mismatch in the ID token; expected "<CUSTOM_DOMAIN>", found "<DEFAULT_DOMAIN>"

My workaround is to catch this error message and do another login flow
As I didn't find any way to configure the account link extension to go on my custom domain page

I'm not sure someone from the repo will read this, but hopefully it may help someone

@ajubin
Copy link
Author

ajubin commented Jun 28, 2023

@rlewis-grax
Copy link

@ajubin See this section of the extension documentation, which states:

If you're using a custom domain, you'll need to set the configs rule customDomain with the custom domain (for example, auth.custom.com).

  1. Go to Auth0 Dashboard > Auth Pipeline > Rules.
  2. By default, line 27 of the rule is: issuer: auth0.domain You will need to change this to: issuer: "myCustomDomain.com" Make sure to omit the protocol portion of the URL.

@TomFCarrion
Copy link

@rlewis-grax
Rules are deprecated now. I couldn't find a way of implementing it using an action. Any idea on how to archive it?
image

@jachen-sh
Copy link

Encountering the same issue. Any workaround for this with triggers and actions @rlewis-grax ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants