mirror of
https://github.com/9001/copyparty.git
synced 2025-10-06 03:50:30 +02:00
IdP: add safeguard --idp-h-key
and also require --xff-src
This commit is contained in:
parent
e8b7f65f82
commit
d71f844b43
7 changed files with 55 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue