Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
/ gapp-login Public archive

GINO App extension to support multiple login providers.

License

Notifications You must be signed in to change notification settings

python-gino/gapp-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gapp-login

GINO App extension to support multiple login providers.

SMS Login

SMS Login

Test SMS Login with Swagger-UI.

  1. Click "Authorize" in Swagger-UI.
  2. In the popup, check openid scope.
  3. Click "Authorize", a link is shown in a new tab, don't follow the link.
  4. In the new tab, append &prompt=json to the URL in the address bar, hit ENTER and you'll get a JSON.
  5. Copy the value of the context into clipboard, this is a JWT token as the login context.
  6. In the same new tab, browse to Swagger-UI again.
  7. Try out POST /login/sms, use the copied value as token, use +86 for prefix, and any mobile number.
  8. Hit "Execute", find the SMS ID in the result.
  9. Try out PUT /login/sms/{sms_id}, use the previous SMS ID, the same token and code found in the server-side debug log.
  10. Hit "Execute", it says "Method Not Allowed", that's okay.
  11. Find the actual redirect URL in the server-side log, paste it into the address bar of the same new tab, leave the host name and port as it is.
  12. Hit ENTER and the new tab will be closed, with the original Swagger-UI logged in.

WeChat Login

WeChat Login

About

GINO App extension to support multiple login providers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •