Files
lrc-backend/auth/oidc.py
2019-03-19 15:29:26 +01:00

12 lines
355 B
Python

# 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