Linkedin OAuth2 authorization code error

后端 未结 3 1842
时光说笑
时光说笑 2021-01-21 11:53

I´m trying to connect via Linkedin Auth2 from a java web application:

  1. Added my own app in linkedin.
  2. Generate the authorization URL: https://www.linkedin.c
3条回答
  •  日久生厌
    2021-01-21 12:42

    The value of your redirect_uri parameter must be URL-encoded, so at 6. do:

     https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code&code=YYY&redirect_uri=http%3A%2F%2Flocalhost%3A9090%2FSpringMVC%2Ftoken.htm&client_id=XXX&client_secret=ZZZ
    

    and it need not be sent as a POST but as a GET.

提交回复
热议问题