...
Create a new Credential for the service: https://console.cloud.google.com/apis/credentials
From the menu Create Credentials Select OAuth client Client ID and follow the steps
The application type must be: Web Application
Under the Authorized redirect URIs you should put the exact url where the proxy will be example:
https://<fqnd><fqnd>:<port>/service/auth/sso/google/callback
For B2B:
https://b2bmft.stonebranch.com:9190/service/auth/sso/google/callback
Configure your application
...
Code Block | ||
---|---|---|
| ||
[service.local.auth.oauth] file = "oauth-config.json" { "issuer": "https://accounts.google.com", "clientID": "<client-id>", "clientSecret": "<client-secret-id>", "redirectURI": "https://<fqdn>/service/auth/sso/oauth/callback", "tokenURL": "https://oauth2.googleapis.com/token", "authorizationURL": "https://accounts.google.com/o/oauth2/auth", "scopes": ["profile"], "insecureSkipVerify": true, "userInfoURL": "https://www.googleapis.com/oauth2/v3/userinfo", "userIDKey": "sub" } |
Note |
---|
Google provider offer offers a setup for Oauth2. |