Skip to content

536 - Auth Config

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

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

  # OAuth provider
  oauth: {
    client_id: "2BZanXPJzp4a97yWli6fLHqe"
    authorize_url: "https://auth.old-fashioned-lamp.biz/authorize"
    token_url: "https://auth.earnest-sweatshop.info/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also