This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/passbook/oauth_provider/forms.py

16 lines
386 B
Python
Raw Normal View History

2018-11-26 21:40:10 +00:00
"""passbook OAuth2 IDP Forms"""
from django import forms
from passbook.oauth_provider.models import OAuth2Provider
class OAuth2ProviderForm(forms.ModelForm):
"""OAuth2 Provider form"""
class Meta:
model = OAuth2Provider
fields = ['name', 'user', 'redirect_uris', 'client_type',
'authorization_grant_type', 'client_id', 'client_secret', ]