Update OAuth2.md

This commit is contained in:
Ste Vaidis 2024-12-15 12:59:28 +02:00
parent 9f8b574fe4
commit 68601963f2

View File

@ -47,7 +47,7 @@ A way for the `user` to tell `google` to give an access token to `xorismesiti.gr
```sh ```sh
GET https://accounts.google.com/o/oauth2/v2/auth? GET https://accounts.google.com/o/oauth2/v2/auth?
response_type=code& response_type=code&
client_id=YOUR_GOOGLE_CLIENT_ID& client_id=Ab2i34JHS9D&
redirect_uri=https://xorismesiti.gr/callback& redirect_uri=https://xorismesiti.gr/callback&
scope=email%20profile& scope=email%20profile&
state=xyz123 state=xyz123
@ -67,7 +67,7 @@ GET https://accounts.google.com/o/oauth2/v2/auth?
```bash ```bash
HTTP/1.1 302 Found HTTP/1.1 302 Found
Location: https://xorismesiti.gr/api/auth/callback?code=4/0AX4XfWgNmGZVbV7Kdr8Q9yVyzIYBnbbBdLfX39ZaE8m0w8zT8jKRLl7w-uT8k7WiyLg0Q&state=random-state-value Location: https://xorismesiti.gr/api/auth/callback?code=4/0AX4XfWgyVyz-uT8k7WiyLg0Q&state=random-state-value
Content-Type: text/html; charset=UTF-8 Content-Type: text/html; charset=UTF-8
Content-Length: 0 Content-Length: 0
``` ```