Skip to content

Authorizations

Everything in Bifröst starts here. Firstly, a user must be authorized. Bifröst supports different types of authorizations you can choose from to adjust to your needs.

Each flow selects one authorization, either inline or from the root authorizations map. An omitted authorization uses authorizations.default only if defined.

Types

  1. local: Local
  2. oidcAuthorizationCode: OIDC Authorization Code
  3. oidcDeviceAuth: OIDC Device Authorization
  4. simple: Simple
  5. htpasswd: Htpasswd
  6. bifroest: Bifröst delegation
  7. none: None

The resulting identity is available through Context Authentication.

Examples

  1. Using local authorization:
    1
    2
    type: local
    rememberMe: allowedAndEnabledByDefault
    
  2. Using OpenID Connect Device Authorization:
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    type: oidcDeviceAuth
    rememberMe: allowedAndEnabledByDefault
    issuer: https://login.microsoftonline.com/my-great-tenant-uuid/v2.0
    clientId: my-great-client-uuid
    clientSecret: very-secret-secret
    scopes:
       - openid
       - email
       - profile
       - offline_access
    
  3. Using Simple authorization:
    1
    2
    3
    4
    5
    type: simple
    rememberMe: allowedAndEnabledByDefault
    entries:
      - name: foo
        password: plain:bar