Skip to content

Commit

Permalink
Use a 24 character state parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mnitchie authored and mikix committed Jul 15, 2024
1 parent 067997e commit 706d092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fhirclient/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = str(uuid.uuid4())[:8]
self.auth_state = uuid.uuid4().hex[:24]
server.should_save_state()

params = {
Expand Down

0 comments on commit 706d092

Please sign in to comment.