Skip to content

Commit cc11984

Browse files
committed
Remove/hide client_secret from application update and detail views
1 parent a9f821d commit cc11984

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

oauth2_provider/templates/oauth2_provider/application_detail.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ <h3 class="block-center-heading">{{ application.name }}</h3>
1111
<input class="input-block-level" type="text" value="{{ application.client_id }}" readonly>
1212
</li>
1313

14-
<li>
15-
<p><b>{% trans "Client secret" %}</b></p>
16-
<input class="input-block-level" type="text" value="{{ application.client_secret }}" readonly>
17-
</li>
18-
1914
<li>
2015
<p><b>{% trans "Hash client secret" %}</b></p>
2116
<p>{{ application.hash_client_secret|yesno:_("yes,no") }}</p>

oauth2_provider/views/application.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def get_form_class(self):
9494
fields=(
9595
"name",
9696
"client_id",
97-
"client_secret",
9897
"hash_client_secret",
9998
"client_type",
10099
"authorization_grant_type",

0 commit comments

Comments
 (0)