Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not fully proper handling of login from social network #774

Open
PhantomYdn opened this issue Mar 17, 2020 · 0 comments
Open

Not fully proper handling of login from social network #774

PhantomYdn opened this issue Mar 17, 2020 · 0 comments
Assignees
Milestone

Comments

@PhantomYdn
Copy link
Member

Please see exception below:



Last cause: Response body is incorrect. Can't extract a 'access_token=([^&]+)' from this: 'error=bad_verification_code&error_description=The+code+passed+is+incorrect+or+expired.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-oauth-app-access-token-request-errors%2F%23bad-verification-code'WicketMessage: Can't instantiate page using constructor 'public org.orienteer.users.web.OUsersLoginPage(org.apache.wicket.request.mapper.parameter.PageParameters)' and argument 'code=[bdc26b5c112d7fbf6c47], state=[23272497-64ae-4833-98fe-5a638757357c]'. An exception has been thrown during construction!
--


Root cause:

com.github.scribejava.core.exceptions.OAuthException: Response body is incorrect. Can't extract a 'access_token=([^&]+)' from this: 'error=bad_verification_code&error_description=The+code+passed+is+incorrect+or+expired.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-oauth-app-access-token-request-errors%2F%23bad-verification-code'
     at com.github.scribejava.core.extractors.OAuth2AccessTokenExtractor.extractParameter(OAuth2AccessTokenExtractor.java:70)
     at com.github.scribejava.core.extractors.OAuth2AccessTokenExtractor.extract(OAuth2AccessTokenExtractor.java:48)
     at com.github.scribejava.core.extractors.OAuth2AccessTokenExtractor.extract(OAuth2AccessTokenExtractor.java:16)
     at com.github.scribejava.core.oauth.OAuth20Service.sendAccessTokenRequestSync(OAuth20Service.java:39)
     at com.github.scribejava.core.oauth.OAuth20Service.getAccessToken(OAuth20Service.java:73)
     at com.github.scribejava.core.oauth.OAuth20Service.getAccessToken(OAuth20Service.java:68)
     at org.orienteer.users.service.impl.DefaultOAuth2ServiceImpl.getAccessToken(DefaultOAuth2ServiceImpl.java:128)
     at org.orienteer.users.service.impl.DefaultOAuth2ServiceImpl.requestProtectedData(DefaultOAuth2ServiceImpl.java:104)
     at org.orienteer.users.service.impl.DefaultOAuth2ServiceImpl.authorize(DefaultOAuth2ServiceImpl.java:56)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:521)
     at com.sun.proxy.$Proxy42.authorize(Unknown Source)
     at org.orienteer.users.web.OUsersLoginPage.authorize(OUsersLoginPage.java:74)
     at org.orienteer.users.web.OUsersLoginPage.lambda$new$0(OUsersLoginPage.java:63)
     at java.util.Optional.ifPresent(Optional.java:159)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants