Update OAuth2-Front-Approach.md
This commit is contained in:
parent
1e50fd8a0f
commit
f9af5b89ba
@ -43,7 +43,7 @@ A way for the `user` to tell `google` to give an access token to `xorismesiti.gr
|
|||||||
|
|
||||||
1. A button "Login with Google" redirects the user to the Google's authorization endpoint `accounts.google.com/o/oauth2/v2/auth`
|
1. A button "Login with Google" redirects the user to the Google's authorization endpoint `accounts.google.com/o/oauth2/v2/auth`
|
||||||
2. After the redirection, the user will log in to Google and grant permissions (if they haven’t already).
|
2. After the redirection, the user will log in to Google and grant permissions (if they haven’t already).
|
||||||
3. Google will redirect the user back to your redirect_uri `https://xorismesiti.gr/callback` with an authorization code `?code=`
|
3. Google will redirect the user back to your redirect_uri `https://xorismesiti.gr/callback` with an authorization code `?code=ABC123`
|
||||||
|
|
||||||
*Security: the state string should be validated upon receiving the response from Google, as it ensures that the response corresponds to the request.*
|
*Security: the state string should be validated upon receiving the response from Google, as it ensures that the response corresponds to the request.*
|
||||||
|
|
||||||
@ -277,7 +277,7 @@ app.listen(3000, () => {
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
### 2.3 Front
|
### 2.3 Frontend
|
||||||
|
|
||||||
The frontend gets the tokens from the backend response,
|
The frontend gets the tokens from the backend response,
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user