From 56ffd92ee84b4c0a66b9c640db9b4da14c9d7537 Mon Sep 17 00:00:00 2001 From: Wojciech Bartosiak Date: Wed, 17 Feb 2016 22:30:10 +0000 Subject: [PATCH] added 'user' into default_idtoken_processing_hook --- oidc_provider/tests/test_token_endpoint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/oidc_provider/tests/test_token_endpoint.py b/oidc_provider/tests/test_token_endpoint.py index 0cbc7c3..24e49c2 100644 --- a/oidc_provider/tests/test_token_endpoint.py +++ b/oidc_provider/tests/test_token_endpoint.py @@ -351,3 +351,4 @@ class TokenTestCase(TestCase): id_token = JWT().unpack(response_dic['id_token'].encode('utf-8')).payload() self.assertEqual(id_token.get('test_idtoken_processing_hook'), FAKE_RANDOM_STRING) + self.assertEqual(id_token.get('test_idtoken_processing_hook_user_email'), self.user.email)