LinkedIn OAuth2访问令牌API仅在响应中返回access_token
和expires_in
值,而不返回token_type
。这导致以下错误:
org.springframework.http.converter.HttpMessageNotReadableException: An error occurred reading the OAuth 2.0 Access Token Response: tokenType cannot be null; nested exception is java.lang.IllegalArgumentException: tokenType cannot be null
最后,是LinkedIn OAuth2.0定制的帮助文章is here: