16 lines
		
	
	
		
			386 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			386 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""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', ]
 |