Update OAuth2.md
This commit is contained in:
parent
f60ea0880b
commit
ce9fea3684
11
OAuth2.md
11
OAuth2.md
@ -34,14 +34,15 @@ GET https://accounts.google.com/o/oauth2/v2/auth?
|
|||||||
|
|
||||||
Google redirects the user back to your platform's redirect_uri `https://xorismesiti.gr/callback` with an authorization_code in the query parameters.
|
Google redirects the user back to your platform's redirect_uri `https://xorismesiti.gr/callback` with an authorization_code in the query parameters.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
GET https://xorismesiti.gr/callback?
|
||||||
|
code=4/0AX4XfWgNmGZVbV7Kdr8Q9yVyzIYBnbbBdLfX39ZaE8m0w8zT8jKRLl7w-uT8k7WiyLg0Q&
|
||||||
|
state=xyz123
|
||||||
|
```
|
||||||
|
|
||||||
- `URL`: https://xorismesiti.gr/callback
|
- `URL`: https://xorismesiti.gr/callback
|
||||||
- `HTTP` Method: GET
|
- `HTTP` Method: GET
|
||||||
- `Parameters`:
|
- `Parameters`:
|
||||||
- `code`: The authorization code sent by Google.
|
- `code`: The authorization code sent by Google.
|
||||||
- `state`: The same state value sent in the original request (for CSRF protection).
|
- `state`: The same state value sent in the original request (for CSRF protection).
|
||||||
|
|
||||||
```sh
|
|
||||||
GET https://xorismesiti.gr/callback?
|
|
||||||
code=4/0AX4XfWgNmGZVbV7Kdr8Q9yVyzIYBnbbBdLfX39ZaE8m0w8zT8jKRLl7w-uT8k7WiyLg0Q&
|
|
||||||
state=xyz123
|
|
||||||
```
|
|
||||||
Loading…
x
Reference in New Issue
Block a user