mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
sso: Fix regression in auth-pubtkt configuration
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
f60c852f4f
commit
e81104aa86
@ -69,10 +69,10 @@ def create_ticket(pkey, uid, validuntil, ip=None, tokens=None, udata=None,
|
|||||||
"""Create and return a signed mod_auth_pubtkt ticket."""
|
"""Create and return a signed mod_auth_pubtkt ticket."""
|
||||||
fields = [
|
fields = [
|
||||||
f'uid={uid}',
|
f'uid={uid}',
|
||||||
'validuntil={int(validuntil)}',
|
f'validuntil={int(validuntil)}',
|
||||||
ip and f'cip={ip}',
|
ip and f'cip={ip}',
|
||||||
tokens and f'tokens={tokens}',
|
tokens and f'tokens={tokens}',
|
||||||
graceperiod and 'graceperiod={int(graceperiod)}',
|
graceperiod and f'graceperiod={int(graceperiod)}',
|
||||||
udata and f'udata={udata}',
|
udata and f'udata={udata}',
|
||||||
extra_fields and ';'.join(
|
extra_fields and ';'.join(
|
||||||
['{}={}'.format(k, v) for k, v in extra_fields])
|
['{}={}'.format(k, v) for k, v in extra_fields])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user