Authenticating with Google Sign-In

Security Requirements and Controls

Detailed Setup Instructions: https://developers.google.com/identity/sign-in/web/sign-in

  • Create a Project from the Google Developer Console,

  • Create a OAuth Client ID on the Credentials Page,

  • Add an Authorized redirect URI: %PUBLIC_URL%/auth/google

where %PUBLIC_URL% is the same value as LogScale is configured with. This can be http://localhost:8080/auth/google during development. Login will fail if the redirect_uri is not set correctly.

Once your app is created you can configure LogScale to authenticate with Google.

Configuration Properties

ini
AUTHENTICATION_METHOD=oauth
PUBLIC_URL=$YOUR_SERVERS_BASE_URL
GOOGLE_OAUTH_CLIENT_ID=$CLIENT_ID #The client_id from your Google OAuth App
GOOGLE_OAUTH_CLIENT_SECRET=$CLIENT_SECRET The #client_secret your Google OAuth App
AUTO_CREATE_USER_ON_SUCCESSFUL_LOGIN=true  # default is false

Read more about Configuration Parameters.

Google

  • Create an OAuth App from your organization/user settings page,

  • Set the Authorization callback URL: %PUBLIC_URL%/auth/github

Read more about Configuration Parameters.

Once your app is created you can configure LogScale to authenticate with GitHub.

ini
AUTHENTICATION_METHOD=oauth
PUBLIC_URL=$YOUR_SERVERS_BASE_URL
GITHUB_OAUTH_CLIENT_ID=$CLIENT_ID # The client_id from your GitHub OAuth App
GITHUB_OAUTH_CLIENT_SECRET=$CLIENT_SECRET # The client_secret your GitHub OAuth App
AUTO_CREATE_USER_ON_SUCCESSFUL_LOGIN=true  # default is false

Read more about Configuration Parameters.