user role. If a Google account’s email matches an existing Logwiz account, the two are linked automatically.
Setup
Create OAuth credentials in Google Cloud Console
You will need a Google Cloud project. If you do not have one, create it at console.cloud.google.com before continuing.Go to the Google Cloud Console credentials page and create a new credential:
- Application type: Web application
- Authorized redirect URI:
https://your-logwiz-url/api/auth/callback/google
your-logwiz-url with the public URL of your Logwiz instance. After saving, copy the Client ID and Client Secret — you will need them in the next step.Enter credentials in Logwiz
In Logwiz, go to Administration → Users and find the Google Auth section. Enter:You can also verify the Callback URL shown in this section matches the redirect URI you registered in Google Cloud Console.
- Client ID — from the Google Cloud Console
- Client Secret — from the Google Cloud Console
- Allowed Domains — one or more email domains whose users are permitted to sign in (e.g.
company.com)
Only users with an email address ending in one of the allowed domains can sign in with Google. For example, adding
company.com permits alice@company.com but blocks user@gmail.com. You can add multiple domains if needed.Apply the configuration
Restart the Logwiz container to apply the new configuration:After the restart, the “Sign in with Google” button appears on the sign-in page.
Google auth configuration changes — including saving credentials, updating allowed domains, and removing Google auth — only take effect after a server restart.