From e079ef67478c525fb87a05fa1044ee6c2ec62306 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sun, 31 Aug 2025 09:31:49 +0200 Subject: [PATCH] OIDC authentication: minor fixes --- scopes/web/auth/oidc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scopes/web/auth/oidc.py b/scopes/web/auth/oidc.py index 1bc2a2d..2343c08 100644 --- a/scopes/web/auth/oidc.py +++ b/scopes/web/auth/oidc.py @@ -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()