Need help with retrofit-oauth?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

200 Stars 53 Forks 7 Commits 0 Opened issues


A Retrofit + Google OAuth demo.

Services available


Need anything else?

Contributors list

Retrofit OAuth

A small demo how to use Retrofit to retrieve an OAuth2 access token from a Google account and use it to read the user's Google profile.

Run the demo

  1. create a new project:, and go to
    • APIs & auth
      • Credentials
        • Create New Client ID
        • Installed application
        • Create Client ID
        • copy the
          Client ID
          Client secret
      • APIs
        • enable
          Google+ API
  2. create a file called
    in the root of this project and add the keys
    to it (and the corresponding values from step 1, of course)
  3. run the main class by executing
    mvn exec:exec
    , and follow the instructions on the console

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.