Closed FuriousSeraphim closed 7 years ago
Hi :)
I don't think that was the problem. Instead, it is related with #18
I added another example with Github provider and it works fine. Try the new version (0.1.4) and let me know.
Thanks for the feedback ;)
Hi, Victor
I tried new version and problem is still here
What provider is that? Is it a custom one? I said so because I checked the available providers on Scribe and vk is not listed.
And it seems that the query string provided does not honor the standard.
vk is Vkontakte
And it seems that the query string provided does not honor the standard.
It's the only reason why i created this issue (and created own temporary workaround) :)
Try the new version 0.1.5 and let me know :)
And provide a custom query string parsing strategy:
QueryString.PARSER.replaceStrategyOAuth2(new QueryStringStrategy() {
@Override public String extractCode(Uri uri) {
//whatever you need to do.
}
@Nullable @Override public String extractError(Uri uri) {
return uri.getQueryParameter("error");
}
});
Hi, Victor. I found simple but painful problem with extracting code from uri in that case
https://redirect_url#code=123456
(VK OAuth2). Problem in#
. LineString code = uri.getQueryParameter("code");
inrx_social_connect.internal.services.OAuth2Service
returnsnull
. I just copy-pasteRxSocialConnect
and add new methodthat allow pass own
rx_social_connect.internal.services.Service
implementation to handle non-standart uri and correctly extract code. Can you add something like that in library core?P.S. Sorry for my English :)