diff options
author | Frederick Muriuki Muriithi | 2022-12-29 04:04:47 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-12-29 04:04:47 +0300 |
commit | 4f5972799832d747080606cd6550d33f98f144ff (patch) | |
tree | 7a43e7acbf42ed3103bc6bd0edd880d505a31a55 /bin/test-website | |
parent | bc709d1aaf1d4ce752394be9d575414de0c66307 (diff) | |
download | genenetwork2-4f5972799832d747080606cd6550d33f98f144ff.tar.gz |
auth: Provide decorator to limit access to routes
Define the new `oauth2_required` decorator that checks for the
existence and validity of a token before allowing access to the given
endpoint.
Move the `user_logged_in` check to the `checks.py` module.
* wqflask/wqflask/oauth2/checks.py: new file
* wqflask/wqflask/oauth2/routes.py: import new decorator
Diffstat (limited to 'bin/test-website')
0 files changed, 0 insertions, 0 deletions