Closed rhufsky closed 2 weeks ago
Today at work I got the exact same issue. Have a look at this page: https://docs.logto.io/docs/recipes/single-sign-on/configure-sso/entra-id-oidc/#step-2-configure-microsoft-entra-id-oidc-sso-at-logto
Under 3. Issuer there is a screenshot where you can find the info for constructing the url for the issuer property:
Excerpt from the page: Locate the OpenID Connect metadata document endpoint and copy the URL WITHOUT the trailing path .well-known/openid-configuration. This is because Logto will automatically append the .well-known/openid-configuration to the issuer URL when fetching the OIDC configurations.
This helped me to get the right information and solving the issue. Good luck, hope this helps!
Great, works for me now, thanks a lot.
Seems that has changed since 5.0.22, so also the docs are correct, maybe it would be nice to have the hint to where to findthe issuer azure parameter in the docs.
Environment
Reproduction URL
https://github.com/rhufsky/entra-id-demo
Describe the issue
Signin with MicrosoftEntraID provider generates an error:
How to reproduce
Signin with MicrosoftEntraID as in the sample referenced in Github. Signin with Google works.
In 5.0.0-beta.22 it works, albeit displaying errors indicating that we have to await
cookies()
andheaders()
as described for React 19.5.0.0.-beta.32 does not seem to work either.
As per the docs, the provider should be configured like so:
In this case, the system throws an exception because
issuer
should refer to an URL.Expected behavior
Successful login