Integrating OAuth
Introduction
Netmaker offers integration with the following OAuth providers:
Google
Okta
Microsoft Entra ID (Azure AD)
Open ID Connect (OIDC)
GitHub
By integrating with an OAuth provider, your Netmaker users can log in via the provider rather than the default simple auth.
Configuring your provider
Starting from version v0.90.0, integrating OAuth is handled directly through the Netmaker Settings interface. For more information, please visit: https://docs.netmaker.io/docs/how-to-guides/identity-provider-integration-guide
In order to use OAuth, configure your OAuth provider (GitHub, Okta, Google, Azure AD, or OIDC).
Configure your provider (except for Azure AD) to use the Netmaker Dashboard URI as the origin URL:
dashboard.<netmaker.base.domain>
Example: https://dashboard.mydomain.com
Configure your provider to use the Netmaker API redirect route with this format:
api.<netmaker.base.domain>/api/oauth/callback
Example: https://api.mydomain.com/api/oauth/callback
General provider instructions:
GitHub: https://oauth2-proxy.github.io/oauth2-proxy/configuration/providers/github
Google: https://oauth2-proxy.github.io/oauth2-proxy/configuration/providers/google
Microsoft Azure AD: https://oauth2-proxy.github.io/oauth2-proxy/configuration/providers/azure
OIDC: https://oauth2-proxy.github.io/oauth2-proxy/configuration/providers/openid_connect
Configuring Netmaker
4. User access and approval
Users can join a Netmaker server via the “Login with SSO” button on the dashboard’s login page.
From v0.23.1, new OAuth-created accounts are added to a pending list and require admin approval before accessing resources.
You can whitelist email domains for OAuth users by setting the ALLOWED_EMAIL_DOMAINS environment variable with a comma-separated list, for example:
Notes

Was this helpful?