From 8bd2bd77c12897315899c20684f53c47941eb7c0 Mon Sep 17 00:00:00 2001 From: Mike Nitchie Date: Wed, 16 Dec 2020 22:04:39 -0500 Subject: [PATCH] Use the entire uuid --- fhirclient/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhirclient/auth.py b/fhirclient/auth.py index 8c5d4687d..af77c27c3 100644 --- a/fhirclient/auth.py +++ b/fhirclient/auth.py @@ -200,7 +200,7 @@ def _authorize_params(self, server): if server is None: raise Exception("Cannot create an authorize-uri without server instance") if self.auth_state is None: - self.auth_state = uuid.uuid4().hex[:24] + self.auth_state = str(uuid.uuid4()) server.should_save_state() params = {