Google WS adapter for salto.io
Basic authentication is not supported in google workspace. How ever we enabled the option to get use access token the was obtain with oauth.
OAuth authentication command:
salto account add -a oauth google_workspace
salto account login -a oauth google_workspace
The adapter also supports OAuth authentication. To authenticate using OAuth, use the oauth
authentication method and follow the following steps:
- Enable Oauth for your app by following the instructions here.
- Ensure the OAuth consent screen you're creating is set to Internal. Otherwise, you'll have to re-login every week.
- Set the
redirectUri
configuration parameter ashttp://localhost:{port}/extract
, whereport
is the port number you want to use. - Enable These APIs here =>
Enable APIS AND SERVICES
:Admin SDK API
Groups Settings API
Cloud Identity API
- Adjust your reauthentication policy here to not require reauthentication.
You can do it in 2 ways:
- Check the 'Never require authentication' checkbox.
- Never require authentication for a specific app:
- Under 'Require reauthentication' section, check the 'Exempt Trusted apps' checkbox and click OVERRIDE.
- Go to the Apps Access Control page.
- Click 'Add app' -> 'OAuth App Name Or Client ID'.
- Paste the client ID of the OAuth app you created in the first step and click 'search'.
- Select the app and check the relevant OAuth Client ID checkbox.
- Continue with the default scope.
- Under 'Access to Google Data' check the 'Trusted' checkbox and continue.
- View your configuration and click 'Finish'.
- Run the
salto account add ...
command and follow the instructions to authenticate using OAuth. You will need to provide theclientId
andclientSecret
, which you can obtain from the same page you create the Oauth and set theredirectUri
, you can go to your google console =>APIs & Services
=>Credentials
.