Where can I find a list of scopes for Google's OAuth 2.0 API? [closed]
Asked Answered
T

8

132

The example I'm working with specifies the scope in the OAuth request as: scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile

which decodes into two URIs:

I cannot find documentation covering the complete list of scopes that are available and what information is accessible within each scope - does anyone know if such a thing exists?

Tush answered 19/5, 2012 at 11:39 Comment(5)
Did you ever find a good list?Annadiane
@JustinThomas see https://mcmap.net/q/172734/-where-can-i-find-a-list-of-scopes-for-google-39-s-oauth-2-0-api-closedMcmorris
the scopes in the user's questions are deprecated, the new scopes are simply profile and emailDolley
Can any one help me on this question please. #34220551Cudweed
Google's OAuth2 documentation sucks.Clueless
D
86

What you are looking for is the Google APIs Discovery Service.

A few other interesting resources:

  • An excellent blog by Nicolas Garnier which describes the important things behind this service.

  • The Google OAuth2 playground, is another good source of info.

  • Finally if you're interested in tracking changes to the discovery documents or don't want to read all the docs, there is an interesting online implementation by Gerwin Sturm.

Darindaring answered 20/5, 2012 at 9:2 Comment(5)
That blog post was exactly what I needed. Thank you!Orgiastic
The online implementation by Gerwin is invaluable.Brice
The Google OAuth2 playground is throwing a 404Quibbling
thanks PW Kad, I have updated the url accordingly.Darindaring
Thanks for this information, +1. I would also really appreciate it if you could take a look at an unanswered question I have: #36289889Trauma
M
48

Thanks to Antonio Sacco's links, I was able to find:

https://www.googleapis.com/discovery/v1/apis/oauth2/v2/rest?fields=auth(oauth2(scopes))

It says these are the scopes available:

 - https://www.googleapis.com/auth/plus.me (Know who you are on Google)
 - https://www.googleapis.com/auth/userinfo.email (View your email address)
 - https://www.googleapis.com/auth/userinfo.profile (View basic information about your account)
Mcmorris answered 10/3, 2013 at 22:40 Comment(0)
N
17

Here is a doc that was added recently to Google's OAuth 2.0 documentation, with a comprehensive list of scopes:

https://developers.google.com/identity/protocols/googlescopes

Nova answered 1/12, 2015 at 22:37 Comment(3)
Thanks. This is the best answer for question. It is exactly what I was looking for (list of scopes grouped by API library). I used scope googleapis.com/auth/analytics.readonly and logically in console I enabled API called in library "Google Analytics Reporting API" but I was not able to get data from API. I had to enable API called "Analytics API". In your link I am wondered that both APIs contains analytics.readonly scope (it is misleading). I latter noticed that although scope is identical I must use correct endpoint to fetch data developers.google.com/apis-explorerAchromatin
This is the best answer. Thank you very much. It's helped me a lot.Longlimbed
This is the answer to the actual question thanks!Roid
R
9

Here is the lists of all of google scopes: https://developers.google.com/identity/protocols/googlescopes

Rolypoly answered 21/1, 2016 at 16:34 Comment(0)
B
8

The complete list of scopes are not provided in OAuth Documentation but provided under FAQ of GData developers. The Scopes doesn't changed in change OAuth 1.0 or Oauth 2.0. The Link to the Page is Added Click here to know the Full List of Google Scopes or link is https://developers.google.com/gdata/faq#AuthScopes

Buhr answered 1/3, 2013 at 14:37 Comment(0)
X
7

Google's oauth docs display a table that lists all of the available scopes.

https://developers.google.com/+/api/oauth#scopes-table

Xymenes answered 19/9, 2014 at 0:3 Comment(0)
A
4

A little late, maybe, but this from the docs:

For information about available login scopes, see Login scopes. To see the available scopes for all Google APIs, visit the APIs Explorer.

Urls for those who don't like clicking on links:

Anselm answered 14/4, 2014 at 19:12 Comment(0)
Q
3

I was looking for the same thing like forever and I found this really awesome tool oAuth 2.0 Playground developed by Google where you can find all scopes in various apis they provide.

Link and Chrome extension they recommend using:

https://developers.google.com/oauthplayground/

http://goo.gl/y9nH4H

Quant answered 28/3, 2014 at 23:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.