add idp-cookie; for high-traffic / glitchy auth servers

This commit is contained in:
ed
2025-08-03 23:27:53 +00:00
parent ae5eefc528
commit f9502c3df3
4 changed files with 23 additions and 1 deletions

View File

@@ -2869,7 +2869,10 @@ class AuthSrv(object):
n = []
q = "insert into us values (?,?,?)"
for uname in self.acct:
accs = list(self.acct)
if self.args.idp_h_usr and self.args.idp_cookie:
accs.extend(self.idp_accs.keys())
for uname in accs:
if uname not in ases:
sid = ub64enc(os.urandom(blen)).decode("ascii")
cur.execute(q, (uname, sid, int(time.time())))