2019-07-05 14:21:48 +01:00
|
|
|
"""passbook OAuth2 Provider Forms"""
|
2018-11-26 21:40:10 +00:00
|
|
|
|
|
|
|
from django import forms
|
|
|
|
|
|
|
|
from passbook.oauth_provider.models import OAuth2Provider
|
|
|
|
|
|
|
|
|
|
|
|
class OAuth2ProviderForm(forms.ModelForm):
|
|
|
|
"""OAuth2 Provider form"""
|
|
|
|
|
|
|
|
class Meta:
|
|
|
|
|
|
|
|
model = OAuth2Provider
|
2019-03-20 19:09:27 +00:00
|
|
|
fields = ['name', 'redirect_uris', 'client_type',
|
2018-11-26 21:40:10 +00:00
|
|
|
'authorization_grant_type', 'client_id', 'client_secret', ]
|