added OpenID Connect support
This commit is contained in:
11
auth/oidc.py
Normal file
11
auth/oidc.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright (c) 2019. Tobias Kurze
|
||||
from flask_pyoidc.flask_pyoidc import OIDCAuthentication
|
||||
from backend.auth.oidc_config import PROVIDER_NAME
|
||||
|
||||
|
||||
def oidc_auth_default_provider(self):
|
||||
return self.oidc_auth_orig(PROVIDER_NAME)
|
||||
|
||||
|
||||
OIDCAuthentication.oidc_auth_orig = OIDCAuthentication.oidc_auth
|
||||
OIDCAuthentication.oidc_auth = oidc_auth_default_provider
|
||||
Reference in New Issue
Block a user