lemonshark05 / High-Backend

High-Backend
1 stars 2 forks source link

Back-end: the Google OAuth2.0 login in API #12

Open lemonshark05 opened 1 year ago

lemonshark05 commented 1 year ago

User ----(click login)----> Server ----(redirect to Google with client_id, scope, and redirect_uri)----> Google User <----(request for permissions)---- Google User ----(grant permissions)----> Google ----(redirect to Server with code)----> Server Server ----(exchange code for access token using client_secret)----> Google Server <----(access token)---- Google Server ----(request user info using access token)----> Google Server <----(user info)---- Google Server ----(redirect to application)----> User

lemonshark05 commented 1 year ago

Need to be tested by others