passageidentity
package, available via pip
. The example below shows a Flask middleware that can be used to authenticate users.psg_auth
_token
). If your application uses Authorization headers instead, you can pass the following option to Passage.psg.authenticateRequest()
validates that a request is properly authenticated, but an additional authorization check is often required.