diff --git a/OAuth2.md b/OAuth2.md index 830c8f3..5b18096 100644 --- a/OAuth2.md +++ b/OAuth2.md @@ -2,7 +2,7 @@ A way for the `user` to tell `google` to give an access token to `xorismesiti.gr` app -### OAuth2 Flow: +### OAuth2 Standar Flow: 1. **User clicks** "Login with Google" on your platform `xorismesiti.gr` 2. **Authorization Request**: Redirect to Google's authorization endpoint `accounts.google.com/o/oauth2` @@ -12,7 +12,7 @@ A way for the `user` to tell `google` to give an access token to `xorismesiti.gr 6. **Access Protected Resources**: App uses the `access_token` to fetch the user's Google profile and email from `googleapis.com/oauth2` 7. **Token Refresh** (Optional): If the `access_token` expires, app uses the `refresh token` to get a new `access_token`. -### Summary of Tasks Split Across Frontend and Backend: +### OAuth2 Frontend/`Backend Flow: **Frontend** 1. **Redirect** the user to Google's OAuth authorization endpoint.