Questions tagged [oauth2-playground]

The OAuth 2.0 Playground is a tool for developers that simplifies experimentation with the OAuth 2.0 protocol and APIs.

Trying out some requests in the OAuth 2.0 Playground can help you understand how the protocol functions and make life easier when the time comes to use OAuth in your own code.

With the OAuth 2.0 Playground you can walk through each step of the OAuth 2.0 flow for server-side web applications: - Authorizing API scopes - Exchanging authorization tokens - Refreshing access tokens - Sending authorized requests to APIs At each step the Playground displays the full HTTP requests and responses.

The playground is pre-configured to use with Google's OAuth 2.0 endpoints and APIs so that you can quickly and easily play around with these. It is also configurable so that you can specify and use any OAuth 2.0 endpoints as long as they implement OAuth 2.0 draft 10 and above.

The OAuth 2.0 playground is also integrated with Google Drive. You can simulate the open-with flow of a Drive file with the OAuth 2.0 playground, and then finish the OAuth 2.0 flow with the playground and play HTTP requests to the Drive REST API. You need to install the OAuth 2.0 Playground Drive application for this.


OAuth 2.0 is an open protocol for authorization and authentication that is currently being drafted. Please see http://oauth.net/2/ for more details.

The OAuth and OAuth 2.0 logos used in the promotional images and as logos are the work of Chris Messina and are used under the terms of the Creative Commons Attribution ShareAlike 3.0 license. Please see: http://wiki.oauth.net/w/page/12238520/Logo

135 questions
97
votes
26 answers

invalid_client in google oauth2

I try to make a web page for youtube video upload, therefore I try to get the client id from google api console, and in the api console it shows something like this: Client ID: 533832195920.apps.googleusercontent.com Redirect URIs:…
Bob
  • 981
  • 1
  • 6
  • 3
27
votes
8 answers

'Token has been expired or revoked' - Google OAuth2 Refresh token gets expired in a few days

I am using Google Analytics API to fetch analytics data. I tried to authenticate it using following steps: Created OAuth client ID in https://console.developers.google.com/ credentials section. In consent screen I had set publishing status as…
19
votes
7 answers

How can I reset achievements from Google Game Services?

I'm testing my game using Google's new Games Services, and I'd like to reset my account's achievements for testing. I've found that you can reset achievements using google's APIs…
13
votes
3 answers

Google Calendar API calendar id and event id

I am learning on how to access google calendar API for creating and accessing events. I am trying to understand API using OAuth 2.0 Playground. I am struggling on what to set for calendarid and eventid…
12
votes
2 answers

Is there a way to *only* get a user's email address with Google's OAuth2 implementation?

I have a "Sign in with Google+" button on my page. When people click on it, I want the only thing they authorize to be "View your email address." I don't want "Know who you are on Google" or "View basic information about your account." I only want…
iffy
  • 719
  • 1
  • 4
  • 20
11
votes
3 answers

getting data from google plus community and events using google+ API

Google provide many of its data via api. Google plus provide data of people,activity,comments. But its not provide data of new feature like community,events. How can i access that stuff via google plus api? I need data of community that i joint and…
sandeep
  • 2,244
  • 1
  • 23
  • 38
9
votes
2 answers

intermittent error while calling GMAIL API - "The caller does not have permission"

getting this error intermittently HttpError 403 when requesting https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest returned "The caller does not have permission" It works sometimes and other times it doesn't. I see the same issue on the…
8
votes
2 answers

Read BloodPressure and BloodGlucose dataSource from google api fitness playground

If I go to google api playground I do the following steps: Step 1: Select & authorize APIs. I select the two scopes https://www.googleapis.com/auth/fitness.blood_glucose.read https://www.googleapis.com/auth/fitness.blood_pressure.read cause I…
Zu1779
  • 2,178
  • 1
  • 18
  • 17
7
votes
1 answer

How can I configure Google OAuth consent screen to not show checkboxes?

Hi Stackoverflow community, I'm trying to configure a web app to make use of certain Google scopes. I want the user to either approve all of them or reject all of them. This is exactly the behavior I do get when playing around with Google OAuth…
cSn
  • 2,796
  • 3
  • 23
  • 29
7
votes
2 answers

GoogleAPI oauth2 refresh token expires in 1 hour

I am using Google APIs in my application and the oauth2 refresh token expires after 1 hour. I am using this refresh token to execute a task which runs daily. I create the refresh token using the OAuth2 playground. Is there a way to extend the…
Madhuka Wickramapala
  • 1,344
  • 2
  • 14
  • 28
7
votes
2 answers

Does Google OAuth2.0 support an OAuth-flow for a Resource Owner Password Credential Flow?

Hello kind people of the internet. Does Google OAuth2.0 support an OAuth-flow for a Resource Owner Password Credential Flow? ...and if so, then: A.) can this type of OAuth flow be tested on the Google OAuth2 Playground? B.) are there any examples…
woody
  • 316
  • 2
  • 6
  • 20
6
votes
2 answers

Google Oauth2 Playground blocked - how can I unblock it?

I was trying to assume roles in order to test the CloudSearch API, and I'm locked out. I see: This app is blocked The app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked access.
6
votes
0 answers

public Youtube / Google API test account / channel

I'm trying to test my implementation for the Youtube Analytics API, but my own Google Accounts doesn't have any (advanced audience) data to provide. Is there any public available test account (Youtube Channel), so i can check my requests (with…
MRonline
  • 203
  • 1
  • 8
6
votes
1 answer

Custom Oauth Server and ampersand in query string issue

I have been trying to use the oauth2 playground with the Laravel oauth2-server bundle and ran into an issue. I'm using header('location: to take me back to google after the authorization has happened. The string I'm putting into the redirect is…
bretterer
  • 5,693
  • 5
  • 32
  • 53
6
votes
1 answer

oauth2.0 invalid request when trying to use refresh token

Used google oauth2 playground: https://developers.google.com/oauthplayground/ Followed: https://developers.google.com/accounts/docs/OAuth2WebServer#offline Anyone why I am getting invalid request? POST /o/oauth2/token HTTP/1.1 Host:…
user1739509
  • 61
  • 1
  • 2
1
2 3
8 9