From 0882c5c63bd1fc6761c58f39356ee0369bcda26a Mon Sep 17 00:00:00 2001 From: Sjoerd Langkemper Date: Wed, 15 Jul 2015 12:17:21 +0200 Subject: [PATCH] Make the `sub` a string In the default sub generator. The spec says "The sub value is a case sensitive string." --- oidc_provider/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oidc_provider/settings.py b/oidc_provider/settings.py index 073a37f..c2ec4c8 100644 --- a/oidc_provider/settings.py +++ b/oidc_provider/settings.py @@ -56,7 +56,7 @@ class DefaultSettings(object): OPTIONAL. """ def default_sub_generator(user): - return user.id + return str(user.id) return default_sub_generator