OAuth2 Authentication#
Enable OAuth2 authentication on the coordinator.
Usage#
Provision the module:
minitrino provision -m oauth2
Once deployed, visit the UI on https://localhost:8443 and work through the
authentication process. You will be redirected to a service on
https://host.docker.internal:8100 to facilitate the OAuth2 flow.
Prerequisites#
Prior to deploying this module, you must:
Authenticate to the Github container registry (docs) in order to pull the
ghcr.io/navikt/mock-oauth2-serverimage.Add this DNS entry in the
/etc/hostsfile on your machine (docs):
127.0.0.1 host.docker.internal
The hosts file modification allows for all Docker services to be exposed on
your host at host.docker.internal:${PORT}. This is a requirement given the
nature of the redirects and callbacks that occur during the OAuth2 credential
flow.
Default OAuth2 Principals#
The following OAuth2 principals are listed below, along with the usernames that are mapped to them:
Mapped User |
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Using an email other than the ones listed above will result in a failed authentication attempt.
Dependent Modules#
tls: Required for securing credentials in transit.