diff options
| author | Antony Lesuisse <al@openerp.com> | 2012-08-16 00:47:08 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2012-08-16 00:47:08 +0200 |
| commit | 23178302c4c44034e0bf6b6b1ea1a60d42e7d41c (patch) | |
| tree | 83317334646cb394af01b2b6783719d02da3a9e0 /addons/auth_oauth/auth_oauth_data.xml | |
| parent | 35e620ce688d07fd7ff6b0f50510c2c9301d2c7a (diff) | |
oauth generic with buttons from zocial
bzr revid: al@openerp.com-20120815224708-rcge3914klkwrw6u
Diffstat (limited to 'addons/auth_oauth/auth_oauth_data.xml')
| -rw-r--r-- | addons/auth_oauth/auth_oauth_data.xml | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/addons/auth_oauth/auth_oauth_data.xml b/addons/auth_oauth/auth_oauth_data.xml index 7eef4f83c51..021a03b2742 100644 --- a/addons/auth_oauth/auth_oauth_data.xml +++ b/addons/auth_oauth/auth_oauth_data.xml @@ -1,13 +1,26 @@ <?xml version="1.0"?> <openerp> <data noupdate="1"> + <record id="provider_facebook" model="auth.oauth.provider"> + <field name="name">Facebook Graph</field> + <field name="client_id">facebook_client_id</field> + <field name="auth_endpoint">https://www.facebook.com/dialog/oauth</field> + <field name="scope"></field> + <field name="validation_endpoint">https://graph.facebook.com/me/permissions</field> + <field name="data_endpoint"></field> + <field name="css_class">zocial facebook</field> + <field name="body">Sign in with facebook</field> + <field name="active">True</field> + </record> <record id="provider_google" model="auth.oauth.provider"> <field name="name">Google OAuth2</field> <field name="client_id">108010644258-duuhmp6pu7li4tsmnqg7j9rvdeklg0ki.apps.googleusercontent.com</field> <field name="auth_endpoint">https://accounts.google.com/o/oauth2/auth</field> <field name="scope">https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile</field> - <field name="validation_endpoint">https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=</field> - <field name="data_endpoint">https://www.googleapis.com/oauth2/v1/userinfo?access_token=</field> + <field name="validation_endpoint">https://www.googleapis.com/oauth2/v1/tokeninfo</field> + <field name="data_endpoint">https://www.googleapis.com/oauth2/v1/userinfo</field> + <field name="css_class">zocial google</field> + <field name="body">Sign in with google</field> <field name="active">True</field> </record> <record id="provider_twitter" model="auth.oauth.provider"> @@ -15,8 +28,10 @@ <field name="client_id">108010644258-duuhmp6pu7li4tsmnqg7j9rvdeklg0ki.apps.twitterusercontent.com</field> <field name="auth_endpoint">https://api.twitter.com/oauth/request_token</field> <field name="scope"></field> - <field name="validation_endpoint">https://api.twitter.com/oauth/authorize?oauth_token=</field> + <field name="validation_endpoint">https://api.twitter.com/oauth/authorize</field> <field name="data_endpoint"></field> + <field name="css_class">zocial twitter</field> + <field name="body">Sign in with twitter</field> <field name="active">True</field> </record> </data> |
