Mees Overdevest
Mees Overdevest

Reputation: 43

LinkedIn OAuth2 /oauth/v2/accessToken response not returning a "token_type"

I'm using spring-security-oauth2-client for the authentication in my project, but the library expects a "token_type" to be present in the response of the POST-request to https://www.linkedin.com/oauth/v2/accessToken. The library is built following the OAuth2 convention, but LinkedIn is not following this convention. The AccessToken convention: https://www.rfc-editor.org/rfc/rfc6749#section-5.1

Does anyone have a fix for this problem? I temporarily cloned one of the child libraries of spring-security-oauth2-client to force the "token_type" to be "Bearer".

Upvotes: 3

Views: 1066

Answers (1)

tduchateau
tduchateau

Reputation: 4471

This issue has already been reported here and here. The fix proposed here by jgrandja is working.

Upvotes: 1

Related Questions