From d174d4e629f62a25af22c17e3b6eafb9392d06b8 Mon Sep 17 00:00:00 2001 From: Wojciech Bartosiak Date: Wed, 5 Oct 2016 17:37:49 +0200 Subject: [PATCH] fix for generating client secret --- oidc_provider/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oidc_provider/models.py b/oidc_provider/models.py index 4167b96..19cc068 100644 --- a/oidc_provider/models.py +++ b/oidc_provider/models.py @@ -35,7 +35,7 @@ class Client(models.Model): name = models.CharField(max_length=100, default='', verbose_name=_(u'Name')) client_type = models.CharField(max_length=30, choices=CLIENT_TYPE_CHOICES, default='confidential', verbose_name=_(u'Client Type'), help_text=_(u'Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable.')) client_id = models.CharField(max_length=255, unique=True, verbose_name=_(u'Client ID')) - client_secret = models.CharField(max_length=255, blank=True, default='', verbose_name=_(u'Client SECRET')) + client_secret = models.CharField(max_length=255, blank=True, verbose_name=_(u'Client SECRET')) response_type = models.CharField(max_length=30, choices=RESPONSE_TYPE_CHOICES, verbose_name=_(u'Response Type')) jwt_alg = models.CharField(max_length=10, choices=JWT_ALGS, default='RS256', verbose_name=_(u'JWT Algorithm'), help_text=_(u'Algorithm used to encode ID Tokens.')) date_created = models.DateField(auto_now_add=True, verbose_name=_(u'Date Created'))