jclouds/apis/oauth
Ignasi Barrera 0e7283e191 Convert logback.xml to unix format 2015-10-28 23:15:28 +01:00
..
src Convert logback.xml to unix format 2015-10-28 23:15:28 +01:00
README * Change OAuthScopes into an interface as opposed to boilerplating annotations. 2014-11-12 20:29:16 -08:00
pom.xml Amended OAuth API pom.xml 2015-04-15 11:03:26 +02:00

README

In order to use oauth applications must specify the following properties:

Mandatory:
<myprovider>.identity - the oauth identity (e.g., service account email in Google Api's)
<myprovider>.credential - the private key used to sign requests, in pem format
oauth.endpoint - the endpoint to use for authentication (e.g., "http://accounts.google.com/o/oauth2/token" in Google Api's)
oauth.audience - the "audience" of the token request (e.g., "http://accounts.google.com/o/oauth2/token" in Google Api's)

Running the live test:

mvn clean install -Plive\
 -Dtest.oauth.identity=<accout email>\
 -Dtest.oauth.credential=<accout pk in pem format>\
 -Dtest.oauth.endpoint=https://accounts.google.com/o/oauth2/token\
 -Dtest.jclouds.oauth.audience=https://accounts.google.com/o/oauth2/token\
 -Dtest.jclouds.oauth.scope=https://www.googleapis.com/auth/prediction