Skip to content

Commit 0ecf0b8

Browse files
committed
Improve help_text for Application.hash_client_secret
1 parent 782dc44 commit 0ecf0b8

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.0.7 on 2024-08-04 11:47
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('oauth2_provider', '0010_application_allowed_origins'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='application',
15+
name='hash_client_secret',
16+
field=models.BooleanField(default=True, help_text='Uncheck if you need to support OIDC with JWT and HS256.'),
17+
),
18+
]

oauth2_provider/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ class AbstractApplication(models.Model):
135135
db_index=True,
136136
help_text=_("Hashed on Save. Copy it now if this is a new secret."),
137137
)
138-
hash_client_secret = models.BooleanField(default=True)
138+
hash_client_secret = models.BooleanField(
139+
default=True, help_text=_("Uncheck if you need to support OIDC with JWT and HS256.")
140+
)
139141
name = models.CharField(max_length=255, blank=True)
140142
skip_authorization = models.BooleanField(default=False)
141143

0 commit comments

Comments
 (0)