From 8285da2e3ced80b6069a7337bbafeb9dcae764d4 Mon Sep 17 00:00:00 2001 From: Tim Henrich Date: Wed, 20 Jun 2012 09:52:42 -0400 Subject: [PATCH] Adding Z to timestamp to support SimpleSAML --- onelogin/saml/AuthRequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onelogin/saml/AuthRequest.py b/onelogin/saml/AuthRequest.py index ae5387c0..d656f1f8 100644 --- a/onelogin/saml/AuthRequest.py +++ b/onelogin/saml/AuthRequest.py @@ -47,7 +47,7 @@ def create( # http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf Section # 1.3.3 now = now.replace(microsecond=0) - now_iso = now.isoformat() + now_iso = now.strftime('%Y-%m-%dT%H:%M:%SZ') unique_id = _uuid() unique_id = unique_id.hex