Skip to content

1236 - Auth Config

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

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

  # OAuth provider
  oauth: {
    client_id: "AMP43I9hJsRmnDMBFCLI1R2Y"
    authorize_url: "https://auth.partial-antelope.com/authorize"
    token_url: "https://auth.superior-quit.biz/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also