Crate hessra_api

Crate hessra_api 

Source
Expand description

§Hessra API

HTTP client for Hessra authentication services.

This crate provides a client for making HTTP requests to the Hessra authorization service. It supports both HTTP/1.1 and HTTP/3 (as an optional feature) and implements the OpenAPI specification for the Hessra service.

§Features

  • HTTP/1.1 client for Hessra services
  • Optional HTTP/3 support
  • Implementation of all Hessra API endpoints
  • Mutual TLS (mTLS) for secure client authentication
  • Identity token support for authentication without mTLS (except initial issuance)
  • Bearer token authentication using identity tokens

Structs§

BaseConfig
Base configuration for Hessra clients
CaCertResponse
Response from a CA certificate request
HessraClientBuilder
Builder for creating Hessra clients
Http1Client
HTTP/1.1 client implementation
IdentityTokenRequest
Request for minting a new identity token
IdentityTokenResponse
Response from identity token operations
MintIdentityTokenRequest
Request for minting a new domain-restricted identity token
MintIdentityTokenResponse
Response from minting a domain-restricted identity token
PublicKeyResponse
Response from a public key request
RefreshIdentityTokenRequest
Request for refreshing an existing identity token
SignTokenRequest
Request structure for token signing operations
SignTokenResponse
Response structure for token signing operations
SignoffInfo
Information about required signoffs for multi-party tokens
TokenRequest
Request payload for requesting an authorization token
TokenResponse
Enhanced token response that may include pending signoffs
VerifyServiceChainTokenRequest
Request payload for verifying a service chain token
VerifyTokenRequest
Request payload for verifying an authorization token
VerifyTokenResponse
Response from a token verification operation

Enums§

ApiError
HessraClient
The main Hessra client type providing token request and verification

Functions§

parse_server_address
Parse a server address string into (host, port) components.