Skip to content

1130 - Auth Config

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

maml
{
  provider: "oidc"
  # Token settings
  jwt: {
    secret_key: "TrKfprgRUscCrE5QgmdHeoHJ74Qfr2u1"
    algorithm: "HS256"
    expiry: "7d"
    refresh_expiry: "7d"
  }

  # OAuth provider
  oauth: {
    client_id: "11B5528wFyozuBt8qg7Rn809"
    authorize_url: "https://auth.gentle-carnival.name/authorize"
    token_url: "https://auth.cheap-innovation.info/token"
    scopes: [
      "openid"
      "profile"
      "email"
    ]
  }

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

See Also