Skip to content

540 - Auth Config

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

maml
{
  provider: "saml"
  # Token settings
  jwt: {
    secret_key: "3nGwzDDdOLbPIN15Pzlybbx3rz4k61x7"
    algorithm: "ES256"
    expiry: "1h"
    refresh_expiry: "30d"
  }

  # OAuth provider
  oauth: {
    client_id: "XeJqnF1yS2dKKWy3WLQCTfZp"
    authorize_url: "https://auth.major-moment.name/authorize"
    token_url: "https://auth.ill-peninsula.name/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also