1- # Generated by Django 5.1.9 on 2025-09-10 12:36
1+ # Generated by Django 5.2.5 on 2025-10-30 17:53
22
33import oauth2_provider .generators
44import oauth2_provider .models
88
99
1010class Migration (migrations .Migration ):
11+
1112 initial = True
1213
13- dependencies = []
14+ dependencies = [
15+ ]
1416
1517 operations = [
1618 migrations .CreateModel (
1719 name = 'OAuthAccessToken' ,
1820 fields = [
1921 ('id' , models .BigAutoField (primary_key = True , serialize = False )),
2022 ('token' , models .TextField ()),
21- (
22- 'token_checksum' ,
23- oauth2_provider .models .TokenChecksumField (db_index = True , max_length = 64 , unique = True ),
24- ),
23+ ('token_checksum' , oauth2_provider .models .TokenChecksumField (db_index = True , max_length = 64 , unique = True )),
2524 ('expires' , models .DateTimeField ()),
2625 ('scope' , models .TextField (blank = True )),
2726 ('created' , models .DateTimeField (auto_now_add = True )),
@@ -35,83 +34,19 @@ class Migration(migrations.Migration):
3534 name = 'OAuthApplication' ,
3635 fields = [
3736 ('id' , models .BigAutoField (primary_key = True , serialize = False )),
38- (
39- 'client_type' ,
40- models .CharField (choices = [('confidential' , 'Confidential' ), ('public' , 'Public' )], max_length = 32 ),
41- ),
42- (
43- 'authorization_grant_type' ,
44- models .CharField (
45- choices = [
46- ('authorization-code' , 'Authorization code' ),
47- ('implicit' , 'Implicit' ),
48- ('password' , 'Resource owner password-based' ),
49- ('client-credentials' , 'Client credentials' ),
50- ('openid-hybrid' , 'OpenID connect hybrid' ),
51- ],
52- max_length = 32 ,
53- ),
54- ),
37+ ('client_type' , models .CharField (choices = [('confidential' , 'Confidential' ), ('public' , 'Public' )], max_length = 32 )),
38+ ('authorization_grant_type' , models .CharField (choices = [('authorization-code' , 'Authorization code' ), ('implicit' , 'Implicit' ), ('password' , 'Resource owner password-based' ), ('client-credentials' , 'Client credentials' ), ('openid-hybrid' , 'OpenID connect hybrid' )], max_length = 32 )),
5539 ('hash_client_secret' , models .BooleanField (default = True )),
5640 ('skip_authorization' , models .BooleanField (default = False )),
5741 ('created' , models .DateTimeField (auto_now_add = True )),
5842 ('updated' , models .DateTimeField (auto_now = True )),
59- (
60- 'algorithm' ,
61- models .CharField (
62- blank = True ,
63- choices = [
64- ('' , 'No OIDC support' ),
65- ('RS256' , 'RSA with SHA-2 256' ),
66- ('HS256' , 'HMAC with SHA-2 256' ),
67- ],
68- default = '' ,
69- max_length = 5 ,
70- ),
71- ),
72- (
73- 'allowed_origins' ,
74- models .TextField (
75- blank = True , default = '' , help_text = 'Allowed origins list to enable CORS, space separated'
76- ),
77- ),
43+ ('algorithm' , models .CharField (blank = True , choices = [('' , 'No OIDC support' ), ('RS256' , 'RSA with SHA-2 256' ), ('HS256' , 'HMAC with SHA-2 256' )], default = '' , max_length = 5 )),
44+ ('allowed_origins' , models .TextField (blank = True , default = '' , help_text = 'Allowed origins list to enable CORS, space separated' )),
7845 ('name' , models .CharField (max_length = 255 , verbose_name = 'Application name' )),
79- (
80- 'redirect_uris' ,
81- models .TextField (
82- help_text = 'Allowed URIs list, space separated' ,
83- validators = [oauth2_provider .validators .URIValidator ],
84- verbose_name = 'Redirection URIs' ,
85- ),
86- ),
87- (
88- 'post_logout_redirect_uris' ,
89- models .TextField (
90- blank = True ,
91- default = '' ,
92- help_text = 'Allowed list with space separated' ,
93- validators = [oauth2_provider .validators .URIValidator ],
94- ),
95- ),
96- (
97- 'client_id' ,
98- models .CharField (
99- db_index = True ,
100- default = oauth2_provider .generators .generate_client_id ,
101- max_length = 100 ,
102- unique = True ,
103- verbose_name = 'Client ID' ,
104- ),
105- ),
106- (
107- 'client_secret' ,
108- oauth2_provider .models .ClientSecretField (
109- db_index = True ,
110- default = oauth2_provider .generators .generate_client_secret ,
111- max_length = 255 ,
112- verbose_name = 'Client secret' ,
113- ),
114- ),
46+ ('redirect_uris' , models .TextField (help_text = 'Allowed URIs list, space separated' , validators = [oauth2_provider .validators .URIValidator ], verbose_name = 'Redirection URIs' )),
47+ ('post_logout_redirect_uris' , models .TextField (blank = True , default = '' , help_text = 'Allowed list with space separated' , validators = [oauth2_provider .validators .URIValidator ])),
48+ ('client_id' , models .CharField (db_index = True , default = oauth2_provider .generators .generate_client_id , max_length = 100 , unique = True , verbose_name = 'Client ID' )),
49+ ('client_secret' , oauth2_provider .models .ClientSecretField (db_index = True , default = oauth2_provider .generators .generate_client_secret , max_length = 255 , verbose_name = 'Client secret' )),
11550 ('active' , models .BooleanField (default = True )),
11651 ],
11752 options = {
@@ -128,12 +63,7 @@ class Migration(migrations.Migration):
12863 ('created' , models .DateTimeField (auto_now_add = True )),
12964 ('updated' , models .DateTimeField (auto_now = True )),
13065 ('code_challenge' , models .CharField (blank = True , default = '' , max_length = 128 )),
131- (
132- 'code_challenge_method' ,
133- models .CharField (
134- blank = True , choices = [('plain' , 'plain' ), ('S256' , 'S256' )], default = '' , max_length = 10
135- ),
136- ),
66+ ('code_challenge_method' , models .CharField (blank = True , choices = [('plain' , 'plain' ), ('S256' , 'S256' )], default = '' , max_length = 10 )),
13767 ('nonce' , models .CharField (blank = True , default = '' , max_length = 255 )),
13868 ('claims' , models .TextField (blank = True )),
13969 ('redirect_uri' , models .CharField (max_length = 2500 )),
@@ -176,10 +106,7 @@ class Migration(migrations.Migration):
176106 ('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
177107 ('enabled' , models .BooleanField (default = True , verbose_name = 'Enable webhook' )),
178108 ('target_url' , models .URLField (verbose_name = 'Target URL' )),
179- (
180- 'all_events' ,
181- models .BooleanField (default = True , verbose_name = 'All events (including newly created ones)' ),
182- ),
109+ ('all_events' , models .BooleanField (default = True , verbose_name = 'All events (including newly created ones)' )),
183110 ],
184111 options = {
185112 'ordering' : ('id' ,),
0 commit comments