Z
Z
Ziens2018-06-23 11:02:34
Android
Ziens, 2018-06-23 11:02:34

Why can't I log in via OAuth in Odnoklassniki?

The authorization request is generated using the ScribeJava library.

OAuth20Service service = new ServiceBuilder(clientId).responseType("token").apiSecret(clientSecret).callback(redirectUri).build(OdnoklassnikiApi.instance());

String url = service.getAuthorizationUrl();

The URL itself looks like this:
https://connect.ok.ru/oauth/authorize?response_typ...

When trying to open this URL through WebView or even a mobile browser, an error page appears:
Failed to open web page
An error occurred while loading the web page https://connect.ok.ru/oauth/authorize?response_typ...
for the following reasons:
net::ERR_CONNECTION_REFUSED
When this url is opened from a computer, everything goes smoothly.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question