providers/oauth2: add missing token_validity field to Forms and API

This commit is contained in:
Jens Langhammer
2020-10-01 20:01:28 +02:00
parent 9b5f9167cd
commit 6cd9edd38a
3 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class OAuth2ProviderSerializer(ModelSerializer):
"client_type",
"client_id",
"client_secret",
"token_validity",
"response_type",
"jwt_alg",
"rsa_key",

View File

@ -38,6 +38,7 @@ class OAuth2ProviderForm(forms.ModelForm):
"client_id",
"client_secret",
"response_type",
"token_validity",
"jwt_alg",
"rsa_key",
"redirect_uris",
@ -46,6 +47,7 @@ class OAuth2ProviderForm(forms.ModelForm):
]
widgets = {
"name": forms.TextInput(),
"token_validity": forms.TextInput(),
}
labels = {"property_mappings": _("Scopes")}
help_texts = {