Update OAuth2.md

This commit is contained in:
Ste Vaidis 2024-12-15 10:05:55 +02:00
parent abae1ff9f7
commit 12573135a9

View File

@ -29,7 +29,7 @@ GET https://accounts.google.com/o/oauth2/v2/auth?
# 3. Authorization Code Response (Google Redirects to Your Platform) # 3. Authorization Code Response (Google Redirects to Your Platform)
Google redirects the user back to your platform's redirect_uri `https://xorismesiti.gr/callback` with an authorization_code in the query parameters. 1. Google redirects the user back to your platform's redirect_uri `https://xorismesiti.gr/callback` with an authorization_code in the query parameters.
```sh ```sh
GET https://xorismesiti.gr/callback? GET https://xorismesiti.gr/callback?
@ -46,11 +46,9 @@ GET https://xorismesiti.gr/callback?
# 4. Access Token Request (Exchange Authorization Code for Token) # 4. Access Token Request (Exchange Authorization Code for Token)
Now that your platform has the authorization code, Now your platform can use exchange the authorization code for an access token and refresh token.
it sends a POST request to Google's token endpoint 1. it sends a POST request to Google's token endpoint
to exchange the authorization code for an access token and refresh token.
- `HTTP` Method: POST - `HTTP` Method: POST
- `URL`: https://oauth2.googleapis.com/token - `URL`: https://oauth2.googleapis.com/token