“client_id” is missing when authenticate with LinkedIn

旧巷老猫 提交于 2019-12-11 01:27:34

问题


I'm trying to use oauth2 with LinkedIn, but when callback from LinkedIn, spring boot oauth2 trying to authenticate and failed with "client_id is missing".

This is the tutorial that I use to make oauth2 https://www.callicoder.com/spring-boot-security-oauth2-social-login-part-1/ and I want to edit it to work with Linkedin

this is my application.yml

linkedin:

 clientId: 77smtc5d5vlp8h
 clientSecret: *******
 redirectUriTemplate: '{baseUrl}/oauth2/callback/{registrationId}'
 authorization-grant-type: authorization_code
 client-authentication-method: form
 scope:
   - r_basicprofile
   - r_emailaddress

provider:

linkedin:
 authorization-uri: https://www.linkedin.com/oauth/v2/authorization
 token-uri: https://www.linkedin.com/oauth/v2/accessToken
 user-info-uri: https://api.linkedin.com/v2/people/~?format=json

来源:https://stackoverflow.com/questions/54124186/client-id-is-missing-when-authenticate-with-linkedin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!