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.
2020-05-16 14:02:42 +00:00
|
|
|
"""passbook OAuth2 Provider Forms"""
|
2018-11-26 21:40:10 +00:00
|
|
|
|
|
|
|
from django import forms
|
|
|
|
|
2020-05-16 14:02:42 +00:00
|
|
|
from passbook.providers.oauth.models import OAuth2Provider
|
2018-11-26 21:40:10 +00:00
|
|
|
|
|
|
|
|
2020-05-16 14:02:42 +00:00
|
|
|
class OAuth2ProviderForm(forms.ModelForm):
|
|
|
|
"""OAuth2 Provider form"""
|
2018-11-26 21:40:10 +00:00
|
|
|
|
|
|
|
class Meta:
|
|
|
|
|
2020-05-16 14:02:42 +00:00
|
|
|
model = OAuth2Provider
|
2019-12-31 11:51:16 +00:00
|
|
|
fields = [
|
|
|
|
"name",
|
|
|
|
"redirect_uris",
|
|
|
|
"client_type",
|
|
|
|
"authorization_grant_type",
|
|
|
|
"client_id",
|
|
|
|
"client_secret",
|
|
|
|
]
|