This commit is contained in:
iFargle
2023-02-21 21:30:54 +09:00
parent ca3641f808
commit dc32c15260

View File

@@ -92,13 +92,17 @@ elif AUTH_TYPE == "basic":
basic_auth = BasicAuth(app)
# Make a fake decorator for oidc.require_login
class oidc:
def require_login(self):
return self.func()
def require_login(self, func):
def inner():
func()
return inner
else:
# Make a fake decorator for oidc.require_login
class oidc:
def require_login(self):
return self.func()
def require_login(self, func):
def inner():
func()
return inner
########################################################################################
# Set Authentication type - Dynamically load function decorators