providers/oauth2: add missing token_validity field to Forms and API
This commit is contained in:
		| @ -18,6 +18,7 @@ class OAuth2ProviderSerializer(ModelSerializer): | |||||||
|             "client_type", |             "client_type", | ||||||
|             "client_id", |             "client_id", | ||||||
|             "client_secret", |             "client_secret", | ||||||
|  |             "token_validity", | ||||||
|             "response_type", |             "response_type", | ||||||
|             "jwt_alg", |             "jwt_alg", | ||||||
|             "rsa_key", |             "rsa_key", | ||||||
|  | |||||||
| @ -38,6 +38,7 @@ class OAuth2ProviderForm(forms.ModelForm): | |||||||
|             "client_id", |             "client_id", | ||||||
|             "client_secret", |             "client_secret", | ||||||
|             "response_type", |             "response_type", | ||||||
|  |             "token_validity", | ||||||
|             "jwt_alg", |             "jwt_alg", | ||||||
|             "rsa_key", |             "rsa_key", | ||||||
|             "redirect_uris", |             "redirect_uris", | ||||||
| @ -46,6 +47,7 @@ class OAuth2ProviderForm(forms.ModelForm): | |||||||
|         ] |         ] | ||||||
|         widgets = { |         widgets = { | ||||||
|             "name": forms.TextInput(), |             "name": forms.TextInput(), | ||||||
|  |             "token_validity": forms.TextInput(), | ||||||
|         } |         } | ||||||
|         labels = {"property_mappings": _("Scopes")} |         labels = {"property_mappings": _("Scopes")} | ||||||
|         help_texts = { |         help_texts = { | ||||||
|  | |||||||
| @ -6648,6 +6648,12 @@ definitions: | |||||||
|         title: Client Secret |         title: Client Secret | ||||||
|         type: string |         type: string | ||||||
|         maxLength: 255 |         maxLength: 255 | ||||||
|  |       token_validity: | ||||||
|  |         title: Token validity | ||||||
|  |         description: 'Tokens not valid on or after current time + this value (Format: | ||||||
|  |           hours=1;minutes=2;seconds=3).' | ||||||
|  |         type: string | ||||||
|  |         minLength: 1 | ||||||
|       response_type: |       response_type: | ||||||
|         title: Response type |         title: Response type | ||||||
|         description: Response Type required by the client. |         description: Response Type required by the client. | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer