Exception in thread "main" com.github.scribejava.core.model.OAuth2AccessTokenErrorResponse: {"error":"invalid_redirect_uri","error_description":"Unable to retrieve access token: appid/redirect uri/code verifier does not match authorization code. Or authorization code expired. Or external member binding exists"}
See original GitHub issueHi kullfar,
I just tried LinkedIn20Example on my machine and I got this error 😦
`=== LinkedIn’s OAuth Workflow ===
Fetching the Authorization URL… Got the Authorization URL! Now go and authorize ScribeJava here: https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=78as3jzx478svw&redirect_uri=http%3A%2F%2Fexample.com%2Fcallback&scope=r_basicprofile r_emailaddress&state=some_params And paste the authorization code here
Trading the Request Token for an Access Token… Exception in thread “main” com.github.scribejava.core.model.OAuth2AccessTokenErrorResponse: {“error”:“invalid_redirect_uri”,“error_description”:“Unable to retrieve access token: appid/redirect uri/code verifier does not match authorization code. Or authorization code expired. Or external member binding exists”} at com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor.generateError(OAuth2AccessTokenJsonExtractor.java:75) at com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor.extract(OAuth2AccessTokenJsonExtractor.java:46) at com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor.extract(OAuth2AccessTokenJsonExtractor.java:16) at com.github.scribejava.core.oauth.OAuth20Service.sendAccessTokenRequestSync(OAuth20Service.java:62) at com.github.scribejava.core.oauth.OAuth20Service.getAccessToken(OAuth20Service.java:98) at com.github.scribejava.core.oauth.OAuth20Service.getAccessToken(OAuth20Service.java:91) at com.sinay.Main.main(Main.java:103)`
Can you help me with this issue please ? Thank you 😃
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
note
&state=some_params
in code you mentioned.Thank you