Skip to content

Commit

Permalink
Merge pull request #99 from uw-it-aca/bug/django-session-err
Browse files Browse the repository at this point in the history
decode encrypted str before adding to session
  • Loading branch information
jlaney authored Feb 9, 2024
2 parents 228613d + 3582fca commit 939cfac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blti/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def filter_oauth_params(self, params):

def _encrypt_session(self, data):
aes = aes128cbc(settings.BLTI_AES_KEY, settings.BLTI_AES_IV)
return b64encode(aes.encrypt(json.dumps(data)))
return b64encode(aes.encrypt(json.dumps(data))).decode('utf8')

def _decrypt_session(self, string):
aes = aes128cbc(settings.BLTI_AES_KEY, settings.BLTI_AES_IV)
Expand Down

0 comments on commit 939cfac

Please sign in to comment.