kumidc/frontend/forms/client.py

16 lines
466 B
Python
Raw Normal View History

2022-08-05 14:16:34 +00:00
from django import forms
from oidc_provider.models import Client
from oidc_provider.admin import ClientForm
class ClientEditForm(ClientForm):
class Meta:
model = Client
fields = ['name', 'client_type', 'response_types', 'jwt_alg', '_redirect_uris', 'client_id', 'client_secret']
class ClientCreateForm(ClientForm):
class Meta:
model = Client
fields = ['name', 'client_type', 'response_types', 'jwt_alg', '_redirect_uris']