diff --git a/addons/auth_oauth/__openerp__.py b/addons/auth_oauth/__openerp__.py index 3557bec951b..e7b47a1397d 100644 --- a/addons/auth_oauth/__openerp__.py +++ b/addons/auth_oauth/__openerp__.py @@ -30,6 +30,7 @@ 'website': 'http://www.openerp.com', 'depends': ['base', 'web'], 'data': [ + 'oauth_providers_data.xml' ], 'update_xml': [ 'oauth_providers.xml' diff --git a/addons/auth_oauth/oauth_providers.py b/addons/auth_oauth/oauth_providers.py index 5b5c32841d9..2b42c821684 100644 --- a/addons/auth_oauth/oauth_providers.py +++ b/addons/auth_oauth/oauth_providers.py @@ -12,8 +12,10 @@ class oauth_providers(osv.osv): '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 - 'scope' : fields.char('Accessed user data'), # 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 + 'data_endpoint' : fields.char('Data URL'), + 'redirect_uris' : fields.char('Redirect URIs'), 'icon_url' : fields.char('Icon'), # URL of the icon's provider 'active' : fields.boolean('Active'), 'sequence' : fields.integer(), diff --git a/addons/auth_oauth/oauth_providers.xml b/addons/auth_oauth/oauth_providers.xml index 384a3052789..273ba1c6a10 100644 --- a/addons/auth_oauth/oauth_providers.xml +++ b/addons/auth_oauth/oauth_providers.xml @@ -21,6 +21,8 @@ + + diff --git a/addons/auth_oauth/oauth_providers_data.xml b/addons/auth_oauth/oauth_providers_data.xml new file mode 100644 index 00000000000..b66e6a877b9 --- /dev/null +++ b/addons/auth_oauth/oauth_providers_data.xml @@ -0,0 +1,25 @@ + + + + + Google OAuth2 + 108010644258-duuhmp6pu7li4tsmnqg7j9rvdeklg0ki.apps.googleusercontent.com + https://accounts.google.com/o/oauth2/auth + https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile + https://www.googleapis.com/oauth2/v1/tokeninfo?access_token= + https://www.googleapis.com/oauth2/v1/userinfo?access_token= + https://localhost/ + True + + + Twitter OAuth2 + 108010644258-duuhmp6pu7li4tsmnqg7j9rvdeklg0ki.apps.twitterusercontent.com + https://api.twitter.com/oauth/request_token + + https://api.twitter.com/oauth/authorize?oauth_token= + + https://localhost/ + True + + + \ No newline at end of file