[IMP] auth_oauth: avoid invalid providers
This commit is contained in:
parent
160ddc0240
commit
f0d66ec5c6
|
@ -8,15 +8,15 @@ class auth_oauth_provider(osv.osv):
|
||||||
_order = 'name'
|
_order = 'name'
|
||||||
|
|
||||||
_columns = {
|
_columns = {
|
||||||
'name' : fields.char('Provider name'), # Name of the OAuth2 entity, Google, LinkedIn, etc
|
'name' : fields.char('Provider name', required=True), # Name of the OAuth2 entity, Google, LinkedIn, etc
|
||||||
'client_id' : fields.char('Client ID'), # Our identifier
|
'client_id' : fields.char('Client ID'), # Our identifier
|
||||||
'auth_endpoint' : fields.char('Authentication URL'), # OAuth provider URL to authenticate users
|
'auth_endpoint' : fields.char('Authentication URL', required=True), # OAuth provider URL to authenticate users
|
||||||
'scope' : fields.char('Scope'), # OAUth user data desired to access
|
'scope' : fields.char('Scope'), # OAUth user data desired to access
|
||||||
'validation_endpoint' : fields.char('Validation URL'), # OAuth provider URL to validate tokens
|
'validation_endpoint' : fields.char('Validation URL', required=True),# OAuth provider URL to validate tokens
|
||||||
'data_endpoint' : fields.char('Data URL'),
|
'data_endpoint' : fields.char('Data URL'),
|
||||||
'enabled' : fields.boolean('Allowed'),
|
'enabled' : fields.boolean('Allowed'),
|
||||||
'css_class' : fields.char('CSS class'),
|
'css_class' : fields.char('CSS class'),
|
||||||
'body' : fields.char('Body'),
|
'body' : fields.char('Body', required=True),
|
||||||
'sequence' : fields.integer(),
|
'sequence' : fields.integer(),
|
||||||
}
|
}
|
||||||
_defaults = {
|
_defaults = {
|
||||||
|
|
Loading…
Reference in New Issue