Skip to content

1327 - Auth Config

Authentication and authorization settings. This is an example of a MAML document.

maml
{
  provider: "oauth2"
  # Token settings
  jwt: {
    secret_key: "3eWUD3715P37UWtVkMMgySgaiDncos6l"
    algorithm: "RS256"
    expiry: "1h"
    refresh_expiry: "90d"
  }

  # OAuth provider
  oauth: {
    client_id: "ltM1xX6M57J3NQv4I8zXgLYd"
    authorize_url: "https://auth.black-and-white-cope.com/authorize"
    token_url: "https://auth.magnificent-requirement.org/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

  session: {
    store: "redis"
    cookie_name: "sid"
    secure: true
    http_only: true
  }
}

See Also