authentik/passbook/providers/oauth/forms.py

16 lines
384 B
Python
Raw Normal View History

"""passbook OAuth2 Provider Forms"""
2018-11-26 21:40:10 +00:00
from django import forms
2019-10-07 15:33:48 +01:00
from passbook.providers.oauth.models import OAuth2Provider
2018-11-26 21:40:10 +00:00
class OAuth2ProviderForm(forms.ModelForm):
"""OAuth2 Provider form"""
class Meta:
model = OAuth2Provider
fields = ['name', 'redirect_uris', 'client_type',
2018-11-26 21:40:10 +00:00
'authorization_grant_type', 'client_id', 'client_secret', ]