Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit e818d0a

Browse files
committed
Merge pull request #33 from edx/clintonb/logout-uri
Added logout_uri to Client model
2 parents 511f6d9 + a622af4 commit e818d0a

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

provider/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.3'
1+
__version__ = '1.1.0'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('oauth2', '0002_auto_20160404_0813'),
11+
]
12+
13+
operations = [
14+
migrations.AddField(
15+
model_name='client',
16+
name='logout_uri',
17+
field=models.URLField(help_text=b"Your application's logout URL", null=True, blank=True),
18+
),
19+
]

provider/oauth2/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ class Meta:
4040
# See https://code.djangoproject.com/ticket/23348
4141
app_label = "oauth2"
4242

43-
user = models.ForeignKey(AUTH_USER_MODEL, related_name='oauth2_client',
44-
blank=True, null=True)
43+
user = models.ForeignKey(AUTH_USER_MODEL, related_name='oauth2_client', blank=True, null=True)
4544
name = models.CharField(max_length=255, blank=True)
4645
url = models.URLField(help_text="Your application's URL.")
4746
redirect_uri = models.URLField(help_text="Your application's callback URL")
4847
client_id = models.CharField(max_length=255, default=short_token)
4948
client_secret = models.CharField(max_length=255, default=long_token)
5049
client_type = models.IntegerField(choices=CLIENT_TYPES)
50+
logout_uri = models.URLField(help_text="Your application's logout URL", null=True, blank=True)
5151

5252
def __unicode__(self):
5353
return self.redirect_uri

0 commit comments

Comments
 (0)