From a8d5c5c323da5e786e6b52dd800175bf93f27d74 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Jun 03 2020 11:26:57 +0000 Subject: providers/openidp: Ensure returned client display name is a string We generally expect the client display name to be a string rather than a byte array. Signed-off-by: Neal Gompa --- diff --git a/ipsilon/providers/openidp.py b/ipsilon/providers/openidp.py index 4e5f7c8..9f2b0e9 100644 --- a/ipsilon/providers/openidp.py +++ b/ipsilon/providers/openidp.py @@ -139,7 +139,7 @@ Provides OpenID 2.0 authentication infrastructure. """ def get_client_display_name(self, clientid): # We store this base64-encoded to get around limitations in the url # routing of cherrypy - return b64decode(clientid) + return b64decode(clientid).decode('utf-8') def consent_to_display(self, consentdata): return consentdata['attributes']