#Android Github Oauth Example
- Github Oauth Document
- [Android Asynchronous Http Client Document] (http://loopj.com/android-async-http/)
-
Redirect users to request GitHub access
GET https://github.com/login/oauth/authorize
Parameters : client_id, redirect_uri, scope, state
-
GitHub redirects back to your site
GitHub redirects back to your site with a temporary code in a code parameter
-
Exchange Code for an access token:
POST https://github.com/login/oauth/access_token
Parameters : client_id, redirect_uri, scope, code
-
Get the acessToken
Respose: access_token=e72e16c7e42f292c6912e7710c838347ae178b4a&token_type=bearer