Function mas_oidc_client::requests::registration::register_client

source ·
pub async fn register_client(
    http_service: &HttpService,
    registration_endpoint: &Url,
    client_metadata: VerifiedClientMetadata,
    software_statement: Option<String>,
) -> Result<ClientRegistrationResponse, RegistrationError>
Expand description

Register a client with an OpenID Provider.

§Arguments

  • http_service - The service to use for making HTTP requests.

  • registration_endpoint - The URL of the issuer’s Registration endpoint.

  • client_metadata - The metadata to register with the issuer.

  • software_statement - A JWT that asserts metadata values about the client software that should be signed.

§Errors

Returns an error if the request fails or the response is invalid.