aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authentication/oauth2/resource_server.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-04-20 16:48:45 +0300
committerFrederick Muriuki Muriithi2024-04-20 16:48:45 +0300
commit6671e9a32e00bb01a744d7b564193d54f454e2ce (patch)
treee79f2e96bab399ed82042874399a2d6ad132e542 /gn_auth/auth/authentication/oauth2/resource_server.py
parentcfda9d6cd15763e65fa851d964033e37f377239c (diff)
downloadgn-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.py2
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())