PythonFlaskIdentityManagement: Difference between revisions
Jump to navigation
Jump to search
(→Links) |
No edit summary |
||
Line 8: | Line 8: | ||
** Lots of PyJWT Stuff: https://duckduckgo.com/?t=ffab&q=pyjwt&ia=web | ** Lots of PyJWT Stuff: https://duckduckgo.com/?t=ffab&q=pyjwt&ia=web | ||
** Demo: https://www.youtube.com/watch?v=J5bIPtEbS0Q | ** Demo: https://www.youtube.com/watch?v=J5bIPtEbS0Q | ||
= PyJWT = | |||
<syntaxhighlight lang="bash" line> | |||
cd projects/cypherpunk/cypherpunk_reddit/flask/test_auth | |||
python3 -m venv .venv | |||
source .venv/bin/activate # deactivate to deactivate | |||
pip install flask | |||
pip install flask-pyjwt | |||
</syntaxlighlight> |
Revision as of 16:10, 9 November 2023
Links
- flask-identity: https://pypi.org/project/flask-identity/
- PyJWT: https://pypi.org/project/PyJWT/
- JSON Web Tokens: login, create a token server side with a private key, store it in a cookie
- Lots of PyJWT Stuff: https://duckduckgo.com/?t=ffab&q=pyjwt&ia=web
- Demo: https://www.youtube.com/watch?v=J5bIPtEbS0Q
PyJWT
<syntaxhighlight lang="bash" line> cd projects/cypherpunk/cypherpunk_reddit/flask/test_auth python3 -m venv .venv source .venv/bin/activate # deactivate to deactivate pip install flask pip install flask-pyjwt </syntaxlighlight>