Skip to content

236 - Auth Config

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

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

  # OAuth provider
  oauth: {
    client_id: "h8gzLvrFIg3fW4EbI5p3k8N0"
    authorize_url: "https://auth.rewarding-tusk.com/authorize"
    token_url: "https://auth.biodegradable-yin.name/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also