diff options
author | Frederick Muriuki Muriithi | 2024-04-20 16:48:45 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-04-20 16:48:45 +0300 |
commit | 6671e9a32e00bb01a744d7b564193d54f454e2ce (patch) | |
tree | e79f2e96bab399ed82042874399a2d6ad132e542 /gn_auth/auth/authentication/oauth2/resource_server.py | |
parent | cfda9d6cd15763e65fa851d964033e37f377239c (diff) | |
download | gn-auth-6671e9a32e00bb01a744d7b564193d54f454e2ce.tar.gz |
Setup token validators at app initialisation.
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/resource_server.py')
-rw-r--r-- | gn_auth/auth/authentication/oauth2/resource_server.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gn_auth/auth/authentication/oauth2/resource_server.py b/gn_auth/auth/authentication/oauth2/resource_server.py index c062b28..2405ee2 100644 --- a/gn_auth/auth/authentication/oauth2/resource_server.py +++ b/gn_auth/auth/authentication/oauth2/resource_server.py @@ -15,5 +15,3 @@ class BearerTokenValidator(_BearerTokenValidator): None, lambda tok: tok) require_oauth = ResourceProtector() - -require_oauth.register_token_validator(BearerTokenValidator()) |