openid-connectlinkedin-jsapiamazon-cognito

Is LinkedIn OpenID Connect provider? How can it be used with AWS Cognito Federated Identity?


The AWS Cognito documentation is very sketchy when it comes to explaining OpenID Connect providers or how to implement auth using say LinkedIn. The nearest example is of SalesForce

https://aws.amazon.com/blogs/security/building-an-app-using-amazon-cognito-and-an-openid-connect-identity-provider/

These steps did not work for LinkedIn using it Javascript SDK. Not able to retrieve id_token similar to FB or Google JS SDK. AWS needs id_token to return the AWS credentials.

Anyone has successfully implemented Linked with AWS Cognito?


Solution

  • Nope. It seems Linkedin does not offer full OpenID Connect. Also see this thread on the AWS Forum.

    A possible solution would be to use Cognito with Auth0 (which can log you in via Linkedin).