Update OAuth2.md

This commit is contained in:
Ste Vaidis 2024-12-15 12:09:56 +02:00
parent ba4d311b0b
commit a8a897fdc9

View File

@ -32,10 +32,9 @@ A way for the `user` to tell `google` to give an access token to `xorismesiti.gr
### Redirect the user to Google's OAuth Authorization Endpoint ### Redirect the user to Google's OAuth Authorization Endpoint
1. Action: The frontend provides a "Login with Google" button. 1. The use clicks a "Login with Google" button with a URL to Google's OAuth 2.0 authorization endpoint and redirects the user there.
2. When the user clicks it, the frontend constructs a URL to Google's OAuth 2.0 authorization endpoint and redirects the user there. 2. After this redirection, the user will log in to Google and grant permissions (if they havent already).
3. After this redirection, the user will log in to Google and grant permissions (if they havent already). 3. Google will redirect the user back to your specified redirect_uri with an authorization code.
4. Google will redirect the user back to your specified redirect_uri with an authorization code.
```sh ```sh
GET https://accounts.google.com/o/oauth2/v2/auth? GET https://accounts.google.com/o/oauth2/v2/auth?