Skip to content

Commit

Permalink
Increase max length of Token.redirect_to and release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GaretJax committed Dec 14, 2022
1 parent 364073b commit 2717082
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

1.2.0 (2022-12-14)
==================

* Increased the max length of the Token.Token.redirect_to field to 1023


1.1.0 (2021-08-16)
==================
Expand Down
2 changes: 1 addition & 1 deletion simple_sso/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.1.0'
__version__ = '1.2.0'
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sso_server', '0002_consumer_name_max_length'),
]

operations = [
migrations.AlterField(
model_name='token',
name='redirect_to',
field=models.CharField(max_length=1023),
),
]
2 changes: 1 addition & 1 deletion simple_sso/sso_server/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Token(models.Model):
default=TokenSecretKeyGenerator('access_token')
)
timestamp = models.DateTimeField(default=timezone.now)
redirect_to = models.CharField(max_length=255)
redirect_to = models.CharField(max_length=1023)
user = models.ForeignKey(
getattr(settings, 'AUTH_USER_MODEL', 'auth.User'),
null=True,
Expand Down

0 comments on commit 2717082

Please sign in to comment.