[IMP] account: performance improvement on the creation of new account.move (opw ...
[odoo/odoo.git] / addons / auth_oauth / auth_oauth.py
1 from openerp.osv import osv, fields
2
3 class auth_oauth_provider(osv.osv):
4     """Class defining the configuration values of an OAuth2 provider"""
5
6     _name = 'auth.oauth.provider'
7     _description = 'OAuth2 provider'
8     _order = 'name'
9
10     _columns = {
11         'name' : fields.char('Provider name'),               # Name of the OAuth2 entity, Google, LinkedIn, etc
12         'client_id' : fields.char('Client ID'),              # Our identifier
13         'auth_endpoint' : fields.char('Authentication URL'), # OAuth provider URL to authenticate users
14         'scope' : fields.char('Scope'),                                     # OAUth user data desired to access
15         'validation_endpoint' : fields.char('Validation URL'),              # OAuth provider URL to validate tokens
16         'data_endpoint' : fields.char('Data URL'),
17         'enabled' : fields.boolean('Allowed'),
18         'css_class' : fields.char('CSS class'),
19         'body' : fields.char('Body'),
20         'sequence' : fields.integer(),
21     }
22     _defaults = {
23         'enabled' : False,
24     }