Not fully proper handling of login from social network
PhantomYdn opened this issue · comments
Ilia Naryzhny commented
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)