Vimeo OAuth 2 authentication

601 Views Asked by At

I am working on Vimeo OAuth authentication in my android application. Here is the api link Vimeo Authentication

But i am getting issue on pre Kitkat OS devices that Login button is not taking click on webview client.

If any one have any idea about this issue and how to resolve please help.

Thank you

1

There are 1 best solutions below

0
On

I'm not sure if this is still valid for you, but we recently released vimeo-networking-java which should help with OAuth authentication. The specific instructions on how to get it working can be found here in the README.

But the basic idea is that we provide you with a method to take care of the code grant redirect and it can be implemented with the following:

private void onLoginClick() {
     // Go To Web For Code Grant Auth
     String uri = VimeoClient.getInstance().getCodeGrantAuthorizationURI();
     Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
     startActivity(browserIntent);
}

If you follow the rest of the readme, it will cover how to get the redirect uri set up.