ark::aws::JwksClient

Defined in header “ark/aws/jwks_client.hh”.


This class allows you to fetch, maintain, and validate JWT tokens against a JWK set.

Methods

  • JwksClient()
    Constructor; creates an empty JWKS client that will fail all validation.

  • JwksClient(const std::string & user_pool_id)
    Constructor; retrieves JWKS from the given user pool.

  • JwksClient(const core::Url & url)
    Constructor; retrieves JWKS from the given URL directly.

  • ~JwksClient()
    Destructor; implemented internally to hide details.

  • crypt::JwtClaims validate(const std::string & token)
    Validates the given JWT, decoding it and returning the claims it makes (or throwing if the token is invalid).

    Assumes the token is in its original base64 form.