https://github.com/python-gino/gapp-login
GINO App extension to support multiple login providers.
https://github.com/python-gino/gapp-login
Last synced: 3 months ago
JSON representation
GINO App extension to support multiple login providers.
- Host: GitHub
- URL: https://github.com/python-gino/gapp-login
- Owner: python-gino
- License: bsd-3-clause
- Archived: true
- Created: 2020-06-06T18:01:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-17T06:44:39.000Z (about 5 years ago)
- Last Synced: 2025-03-23T14:35:48.750Z (10 months ago)
- Language: Python
- Size: 243 KB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gapp-login
GINO App extension to support multiple login providers.
## 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
