chore: remove temporary OIDC debug logging
This commit is contained in:
@@ -25,12 +25,6 @@ async def oidc_callback(request: Request, db: Session = Depends(get_db)) -> Redi
|
||||
|
||||
userinfo = token.get("userinfo") or {}
|
||||
groups = userinfo.get("groups", [])
|
||||
import logging as _logging
|
||||
_logging.getLogger("shorefront.auth").warning(
|
||||
"OIDC callback — userinfo keys: %s | groups claim: %r",
|
||||
list(userinfo.keys()),
|
||||
groups,
|
||||
)
|
||||
if FIREWALL_ADMINS_GROUP not in groups:
|
||||
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail="Not in firewall admins group")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user