IdP: add safeguard --idp-h-key and also require --xff-src

This commit is contained in:
ed 2024-03-12 22:57:47 +00:00
parent e8b7f65f82
commit d71f844b43
7 changed files with 55 additions and 7 deletions

View file

@ -968,7 +968,7 @@ class AuthSrv(object):
* any non-zero value from IdP group header
* otherwise take --grps / [groups]
"""
ret = {un:gns[:] for un, gns in self.idp_accs.items()}
ret = {un: gns[:] for un, gns in self.idp_accs.items()}
ret.update({zs: [""] for zs in acct if zs not in ret})
for gn, uns in grps.items():
for un in uns: