Authentication
API Authentication
Personal Access Tokens are used for API authentication and are required for use of the Python SDK.
To create a Personal Access Token click on your profile badge in the lower left of the UI, then click on "Personal Access Token." We recommend saving this as an environment variable like DBNL_API_TOKEN
for future use.
New tokens can be generated at any time, but old tokens cannot currently be revoked, so please remember to keep your tokens safe.
User Authentication
The DBNL platform uses OpenID Connect or OIDC for user authentication. OIDC providers that are known to work with DBNL include:
The DBNL Sandbox Deployment does not use OIDC for authentication, but just a default username/password for all users. For fuller authentication controls please consider a full Deployment.
Configuration
OIDC can be configured using the following options in the DBNL Helm chart or Terraform module:
audience
clientId
issuer
scopes
Instructions on how to get those options for each provider can be found below.
Follow the Auth0 instructions to create a new SPA (single page application).
In Settings > Application URIs, add the DBNL deployment domain to the list of Allowed Callback URLs (e.g. dbnl.mydomain.com).
Navigate to Settings > Basic Information and copy the Client ID as the OIDC
clientId
option.Navigate to Settings > Basic Information and copy the Domain and prepend with
https://
to use as the OIDCissuer
option (e.g.https://my-app.us.auth0.com/
).Follow the Auth0 instructions to create a custom API.
Use your DBNL deployment domain as the Identifier (e.g. dbnl.mydomain.com).
Navigate to Settings > General Settings and copy the Identifier as the OIDC
audience
option.Set the OIDC
scopes
option to"openid profile email"
.
Was this helpful?