OIDC authentication: minor fixes

This commit is contained in:
Helmut Merz 2025-08-31 09:31:49 +02:00
parent ec97d4f82b
commit e079ef6747

View file

@ -36,12 +36,18 @@ class OidcAuthentication:
prc = auth.authenticate()
if prc is None and self.baseAuth is not None:
prc = self.baseAuth.authenticate(request)
if prc is None:
prc = self.unauthenticatedPrincipal()
return prc
def getPrincipal(self, id):
if self.baseAuth is not None:
return self.baseAuth.getPrincipal(id)
def getPrincipals(self, s):
if self.baseAuth is not None:
return self.baseAuth.getPrincipals(s)
def unauthenticatedPrincipal(self):
if self.baseAuth is not None:
return self.baseAuth.unauthenticatedPrincipal()