Skip to content

530 - Auth Config

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

maml
{
  provider: "jwt"
  # Token settings
  jwt: {
    secret_key: "bVf4qrei0lyski7xac2Vftxk43l7Plpt"
    algorithm: "ES256"
    expiry: "1h"
    refresh_expiry: "7d"
  }

  # OAuth provider
  oauth: {
    client_id: "HhW2B1V9crIjURRDOEon0KQr"
    authorize_url: "https://auth.knowledgeable-pinstripe.com/authorize"
    token_url: "https://auth.burly-chiffonier.name/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also