From 6671e9a32e00bb01a744d7b564193d54f454e2ce Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Sat, 20 Apr 2024 16:48:45 +0300 Subject: Setup token validators at app initialisation. --- gn_auth/auth/authentication/oauth2/resource_server.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'gn_auth/auth/authentication/oauth2/resource_server.py') 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()) -- cgit v1.2.3