Call the static method WebAuthProvider.init()
and configure the instance. Finally call .start()
to begin. When you receive the response back in the Activity, call .resume
with the results.
The response can be received in either the
onActivityResult()
method or in theonNewIntent()
method. This depends on whether you are using browser or webview. Two methods.resume()
with different signature had been provided to tackle this.
See MyActivity
for more context.
Implement the abstract class AuthProvider
and define which permissions your provider needs before running the authorization. Call .start()
and finish with .authorize()
when you get the results back on your activity.
If some permissions are needed but not yet granted, a request will be made to the android OS. The result of that request will arrive on the activity's onRequestPermissionsResult()
method. You should redir that result to the provider, also calling onRequestPermissionsResult()
.