# Google

### Create Google Oauth 2.0 Client

* <https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/google-logins?view=aspnetcore-6.0​>
* Go to <https://console.cloud.google.com/apis> ​
* If no project exists create a new project​
* Select the “Oauth consent screen“ tab​
* Select User Type - External and CREATE.​
* In the App information dialog, Provide an app name for the app, user support email, and developer contact information
* Step through the Scopes step
* Step through the Test users step
* Review the OAuth consent screen and go back to the app Dashboard.

### Create the credentials

* Go to the Credentials tab&#x20;
* Click create credentials -> Oauth client ID&#x20;
* Select application type “Web application” and choose a name&#x20;
* Add a redirect URI with the following format&#x20;
  * Https\://{yourURL}/AppsService/signin-google&#x20;
  * Https\://{yourURL}/Platform/signin-google&#x20;
  * Https\://{yourURL}/Apps/signin-google&#x20;
* Click the create button&#x20;
* Save the client ID and Client secret

### Copy ClientId and ClientSecret

* Sign in to the Any2Info platform and go to Settings​
* Click on the group Authorization and select “Google SSO”​
* Copy the value of the newly created clientId&#x20;
* Paste the value in the clientId setting&#x20;
* Copy the value of the newly created secret&#x20;
* Paste the value in the clientsecret setting
* Enable the EnableGoogleSSO setting
* Save the settings

### Connect Google id to the users

* For each user that should be able to sign in to the platform/app using Google make sure the SSO username is filled.
