Skip to content

222 - Auth Config

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

maml
{
  provider: "oidc"
  # Token settings
  jwt: {
    secret_key: "Rfp38zySjhvDlai4TdvOSe92ptCUSqMF"
    algorithm: "ES256"
    expiry: "24h"
    refresh_expiry: "30d"
  }

  # OAuth provider
  oauth: {
    client_id: "QxUQg2a9ogdEzlKxUz9imxBi"
    authorize_url: "https://auth.obvious-importance.org/authorize"
    token_url: "https://auth.tight-understanding.com/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also