Skip to content

630 - Auth Config

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

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

  # OAuth provider
  oauth: {
    client_id: "6OlsTL27D7q1hgcyIO93bwpK"
    authorize_url: "https://auth.warped-department.info/authorize"
    token_url: "https://auth.enchanted-finding.name/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also