From e81104aa86b86cc384463fcfae39696746da04c6 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Mon, 23 Nov 2020 09:42:16 +0530 Subject: [PATCH] sso: Fix regression in auth-pubtkt configuration Signed-off-by: Joseph Nuthalapati Reviewed-by: James Valleroy --- actions/auth-pubtkt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/auth-pubtkt b/actions/auth-pubtkt index 3985b503e..d5bb37e2d 100755 --- a/actions/auth-pubtkt +++ b/actions/auth-pubtkt @@ -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.""" fields = [ f'uid={uid}', - 'validuntil={int(validuntil)}', + f'validuntil={int(validuntil)}', ip and f'cip={ip}', tokens and f'tokens={tokens}', - graceperiod and 'graceperiod={int(graceperiod)}', + graceperiod and f'graceperiod={int(graceperiod)}', udata and f'udata={udata}', extra_fields and ';'.join( ['{}={}'.format(k, v) for k, v in extra_fields])