Like OAuth 2.0 with Android Update

I use the Retrofit library, and I wanted to implement OAuth 2.0 for every API call to authenticate these calls. How can i achieve this? Can you explain me step by step? I followed some blogs, but did not understand how to do this.

+4
source share
2 answers

I highly recommend that you check the u2020 source code . You can achieve this with the OkHttp interceptor (Retrofit 1.x or Retrofit 2.x) or RequestInterceptor, if you stay with Retrofit 1.x.

+8
source

, oAuth 2.0 , , , redirect_url. redirect_url , .

0

Source: https://habr.com/ru/post/1607769/


All Articles