[IMP] Use database uuid as client_id for OpenERP oauth provider
bzr revid: fme@openerp.com-20121002141302-dblh6j4eiwikmdoz
This commit is contained in:
parent
01611481a5
commit
bb8a62a3b4
|
@ -34,6 +34,7 @@ Allow users to login through Google OAuth2.
|
||||||
'depends': ['base', 'web', 'base_setup'],
|
'depends': ['base', 'web', 'base_setup'],
|
||||||
'data': [
|
'data': [
|
||||||
'auth_oauth_data.xml',
|
'auth_oauth_data.xml',
|
||||||
|
'auth_oauth_data.yml',
|
||||||
'auth_oauth_view.xml',
|
'auth_oauth_view.xml',
|
||||||
'security/ir.model.access.csv'
|
'security/ir.model.access.csv'
|
||||||
],
|
],
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
-
|
||||||
|
Use database uuid as client_id for OpenERP oauth provider
|
||||||
|
-
|
||||||
|
!python {model: ir.config_parameter}: |
|
||||||
|
oauth = self.pool.get('auth.oauth.provider')
|
||||||
|
oauth.write(cr, uid, [ref('provider_openerp')], {'client_id': self.get_param(cr, uid, 'database.uuid')})
|
Loading…
Reference in New Issue