Skip to content

1427 - Auth Config

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

maml
{
  provider: "oidc"
  # Token settings
  jwt: {
    secret_key: "tyXTe3m4LpXf2gkwErP3etaQOESZJT44"
    algorithm: "ES256"
    expiry: "15m"
    refresh_expiry: "7d"
  }

  # OAuth provider
  oauth: {
    client_id: "DByyBlzA0LUHKNwSGFjlxSqu"
    authorize_url: "https://auth.pitiful-swanling.com/authorize"
    token_url: "https://auth.miserable-detective.biz/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also