Is LinkedIn OpenID Connect provider? How can it be

2019-04-26 20:38发布

问题:

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?

回答1:

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).