...
- Log in to your Google Apps Admin Console (at https://console.cloud.google.com/apis/credentials) and create new project.
In the ID client OAuth 2.0 section , if needed configure OAUTH consent section then create credentials , then for Desktop application and finally download the related
client_secrets.json
file.- From the leftmost menu "API and enabled services" enable the "Admin SDK API".
For more information on these APIs, navigate to the Google Developers interface, and search for these APIs. Download the Google Apps connector bundle
Change to the directory where you have downloaded the bundle and run the following command on the
client_secrets.json
file that you obtained earlier in this procedure:Code Block $ jar xvf net.tirasa.connid.bundles.googleapps-1.4.3.jar $ java -jar net.tirasa.connid.bundles.googleapps-1.4.3-credentials-generator.jar /path/to/client_secrets.json Request Url is https://accounts.google.com/o/oauth2/auth?client_id=xxxxx&redirect_uri=http://localhost:8080/code-processor&response_type=code&scope=https://www.googleapis.com/auth/admin.directory.group%20https://www.googleapis.com/auth/admin.directory.orgunit%20https://www.googleapis.com/auth/admin.directory.user%20https://www.googleapis.com/auth/apps.licensing&state=/profile Opening browser in the current session. ...
This command opens the default browser (if not please use the link just after the log "Request url is"), and loads a screen on which you authorize consent to access the Google Apps account.
Info title Tip If you have recently created your Google Apps account, it might take some time (often two hours or more) to synchronize the data required for this access request to work. For additional information, refer to the Google documentation noted earlier.
When you have authorized consent, the browser returns a code, that is automatically ingested by an API exposed by the credentials-generator application.
If the process succeded, you should see in the browser (and also the logs of the credentials-generator application) a response similar to the following one:
Code Block language js { "clientId" : "5x4x3x4x0x8x-cxlx3xsxcx8xixlxmx3x0xrxgx7x6x3x.apps.googleusercontent.com", "clientSecret" : "0xhx9xrx8xdxqx9xDxjxUx3x", "refreshToken" : "1x7xmxfx_yxuxNxUxFxjxVxVxkxXx3XxHxMxYxzx5xcxI" }
You can now use the information above to populate the configuration properties as reported above.