ERROR: Bad id_token issuer https://www.linkedin.com/oauth&error=invalid_request when using cognito and using LinkedIn as OIDC provider

0

Hey guys getting this error instead of an access token in the URL header when going to https://YourDomainPrefix.auth.region.amazoncognito.com/oauth2/authorize?response_type=code&client_id=YourClientId&redirect_uri=redirectUrl (with correct details filled in) and logging in to LinkedIn successfully:

ERROR: Bad id_token issuer https://www.linkedin.com/oauth&error=invalid_request

with Cognito using OAuth2 via LinkedIn (the OIDC provider). This randomly (i.e. nothing new was deployed) started happening on the 16th of April and I think it may actually have something to do with Cognito and not my app but I could be wrong?

Dom
gefragt vor einem Monat112 Aufrufe
1 Antwort
1
Akzeptierte Antwort

You might need to update your Issuer URL from https://www.linkedin.com to https://www.linkedin.com/oauth in the AWS cognito user pool settings where you configured the LinkedIn as an Identity provider.

beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat
  • Thanks this was the issue. It's disappointing that we weren't notified about the change from Cognito.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen