summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/auth_oauth.py
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2012-08-18 18:49:32 +0200
committerAntony Lesuisse <al@openerp.com>2012-08-18 18:49:32 +0200
commit297cff0449ddb7b7bdcbbe2bd7c8b80c5cb00a35 (patch)
treebc87a329ecff353cf2aad001e984a9e20a924911 /addons/auth_oauth/auth_oauth.py
parent6cce0bd9fc7d54602c551213429e151b53963397 (diff)
parent4f76c4e8d9fecca6ffc091f13c40ac3eadcc742d (diff)
[MERGE] auth_config
bzr revid: al@openerp.com-20120818164932-tt7mpm1p5k3i5unu
Diffstat (limited to 'addons/auth_oauth/auth_oauth.py')
-rw-r--r--addons/auth_oauth/auth_oauth.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/addons/auth_oauth/auth_oauth.py b/addons/auth_oauth/auth_oauth.py
index e258505868d..34b6aa44936 100644
--- a/addons/auth_oauth/auth_oauth.py
+++ b/addons/auth_oauth/auth_oauth.py
@@ -1,6 +1,6 @@
from openerp.osv import osv, fields
-class auth_oauth_providers(osv.osv):
+class auth_oauth_provider(osv.osv):
"""Class defining the configuration values of an OAuth2 provider"""
_name = 'auth.oauth.provider'
@@ -8,15 +8,17 @@ class auth_oauth_providers(osv.osv):
_order = 'name'
_columns = {
- 'name' : fields.char('Provider name', required=True), # Name of the OAuth2 entity, Google, LinkedIn, etc
- 'client_id' : fields.char('Client ID', required=True), # Our identifier
- 'auth_endpoint' : fields.char('Authentication URL', required=True), # OAuth provider URL to authenticate users
+ 'name' : fields.char('Provider name'), # Name of the OAuth2 entity, Google, LinkedIn, etc
+ 'client_id' : fields.char('Client ID'), # Our identifier
+ 'auth_endpoint' : fields.char('Authentication URL'), # OAuth provider URL to authenticate users
'scope' : fields.char('Scope'), # OAUth user data desired to access
'validation_endpoint' : fields.char('Validation URL'), # OAuth provider URL to validate tokens
'data_endpoint' : fields.char('Data URL'),
+ 'enabled' : fields.boolean('Allowed'),
'css_class' : fields.char('CSS class'),
'body' : fields.char('Body'),
- 'active' : fields.boolean('Active'),
'sequence' : fields.integer(),
}
-
+ _defaults = {
+ 'enabled' : False,
+ }