diff --git a/openid_provider/models.py b/openid_provider/models.py index c4769b2..830d558 100644 --- a/openid_provider/models.py +++ b/openid_provider/models.py @@ -18,22 +18,10 @@ class Client(models.Model): ] name = models.CharField(max_length=100, default='') - user = models.ForeignKey(User) client_id = models.CharField(max_length=255, unique=True) client_secret = models.CharField(max_length=255, unique=True) client_type = models.CharField(max_length=20, choices=CLIENT_TYPE_CHOICES) response_type = models.CharField(max_length=30, choices=RESPONSE_TYPE_CHOICES) - - # TODO: Need to be implemented. - # The list of scopes the client may request access to. - _scope = models.TextField(default='') - def scope(): - def fget(self): - return self._scope.split() - def fset(self, value): - self._scope = ' '.join(value) - return locals() - scope = property(**scope()) _redirect_uris = models.TextField(default='') def redirect_uris(): diff --git a/openid_provider/templates/openid_provider/client_create.html b/openid_provider/templates/openid_provider/client_create.html new file mode 100644 index 0000000..867a114 --- /dev/null +++ b/openid_provider/templates/openid_provider/client_create.html @@ -0,0 +1,50 @@ +{% extends "openid_provider/base.html" %} + +{% load i18n %} + +{% block content %} + +