Skip to content

2036 - Auth Config

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

maml
{
  provider: "saml"
  # Token settings
  jwt: {
    secret_key: "znPiBFSLAcyQ9GJQbM6aX5qRKX21yP3O"
    algorithm: "ES256"
    expiry: "24h"
    refresh_expiry: "30d"
  }

  # OAuth provider
  oauth: {
    client_id: "aBkJluVV4qabHRSHXSowlcrJ"
    authorize_url: "https://auth.pricey-harp.name/authorize"
    token_url: "https://auth.honored-costume.name/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also