Skip to content

921 - Auth Config

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

maml
{
  provider: "saml"
  # Token settings
  jwt: {
    secret_key: "vIWksVrSk7KJwqGQYaTPUvU2F3PzFhNO"
    algorithm: "ES256"
    expiry: "15m"
    refresh_expiry: "30d"
  }

  # OAuth provider
  oauth: {
    client_id: "PszmJuKfK6Z3h4k2zH71Nbgq"
    authorize_url: "https://auth.short-term-final.info/authorize"
    token_url: "https://auth.sugary-hunt.net/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also