Skip to content

1140 - Auth Config

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

maml
{
  provider: "saml"
  # Token settings
  jwt: {
    secret_key: "1HUOtWUexEj3HpeDqk8lAkRTK4ANY8OZ"
    algorithm: "HS256"
    expiry: "24h"
    refresh_expiry: "90d"
  }

  # OAuth provider
  oauth: {
    client_id: "ETKOaAKQAONPamAkfs7Ix9Hm"
    authorize_url: "https://auth.colossal-dead.info/authorize"
    token_url: "https://auth.whispered-conservative.net/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also