OIDC authentication: minor fixes
This commit is contained in:
		
							parent
							
								
									ec97d4f82b
								
							
						
					
					
						commit
						e079ef6747
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -36,12 +36,18 @@ class OidcAuthentication: | ||||||
|         prc = auth.authenticate() |         prc = auth.authenticate() | ||||||
|         if prc is None and self.baseAuth is not None: |         if prc is None and self.baseAuth is not None: | ||||||
|             prc = self.baseAuth.authenticate(request) |             prc = self.baseAuth.authenticate(request) | ||||||
|  |         if prc is None: | ||||||
|  |             prc = self.unauthenticatedPrincipal() | ||||||
|         return prc |         return prc | ||||||
| 
 | 
 | ||||||
|     def getPrincipal(self, id): |     def getPrincipal(self, id): | ||||||
|         if self.baseAuth is not None: |         if self.baseAuth is not None: | ||||||
|             return self.baseAuth.getPrincipal(id) |             return self.baseAuth.getPrincipal(id) | ||||||
| 
 | 
 | ||||||
|  |     def getPrincipals(self, s): | ||||||
|  |         if self.baseAuth is not None: | ||||||
|  |             return self.baseAuth.getPrincipals(s) | ||||||
|  | 
 | ||||||
|     def unauthenticatedPrincipal(self): |     def unauthenticatedPrincipal(self): | ||||||
|         if self.baseAuth is not None: |         if self.baseAuth is not None: | ||||||
|             return self.baseAuth.unauthenticatedPrincipal() |             return self.baseAuth.unauthenticatedPrincipal() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue