0% found this document useful (0 votes)
114 views1 page

OAuth 2 Contract

The document outlines the contract details for OAuth 2.0 authentication using an authorization code grant type with Google. It specifies the redirect URL, authorization server URL, access token URL, client ID, client secret, and scope. It also describes how to pass OAuth in a request header and the mandatory fields needed for the authorization code request and access token request, including endpoints, query parameters, and expected outputs.

Uploaded by

Shivam Rai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
114 views1 page

OAuth 2 Contract

The document outlines the contract details for OAuth 2.0 authentication using an authorization code grant type with Google. It specifies the redirect URL, authorization server URL, access token URL, client ID, client secret, and scope. It also describes how to pass OAuth in a request header and the mandatory fields needed for the authorization code request and access token request, including endpoints, query parameters, and expected outputs.

Uploaded by

Shivam Rai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

OAuth 2.

0 Contract Details:

GrantType Authorization code


redirect URL/Callback URL https://rahulshettyacademy.com/getCourse.php
Authorization server url https://accounts.google.com/o/oauth2/v2/auth
Access token url https://www.googleapis.com/oauth2/v4/token
692183103107-
Client ID p0m7ent2hk7suguv4vq22hjcfhcr43pj.apps.googleusercontent.com
Client Secret erZOWM9g3UtwNRj340YYaK_W
Scope https://www.googleapis.com/auth/userinfo.email
State Any random string
How to pass oauth in request Headers

Mandatory fields for GetAuthorization Code Request ;

End Point : Authorization server url


Query Params:Scope, Auth_url, client_id, response_type, redirect_uri

output : Code

Mandatory fields for GetAccessToken Request :


End point : Access token url
Query Params :Code, client_id, client_secret, redirect_uri, grant_type

Output : Access token

You might also like