#329 providers/openid: secret should be stored as a string
Merged a year ago by simo. Opened a year ago by ngompa.

@@ -18,7 +18,7 @@ 


      def storeAssociation(self, server_url, association):

          iden = '%s-%s' % (server_url, association.handle)

-         datum = {'secret': oidutil.toBase64(association.secret),

+         datum = {'secret': oidutil.toBase64(association.secret).decode('utf-8'),

                   'issued': str(association.issued),

                   'lifetime': str(association.lifetime),

                   'assoc_type': association.assoc_type}

The secret coming from oidutil was being written as bytes, which
led to breakages when trying to do OpenID authentication, due to
everything else expecting strings. Store in the database as strings.

Signed-off-by: Neal Gompa ngompa13@gmail.com

Pull-Request has been merged by simo

a year ago