Skip to main content

Crate mz_oidc_mock

Crate mz_oidc_mock 

Source
Expand description

OIDC mock server for testing.

This module provides a mock OIDC server that serves JWKS endpoints for validating JWT tokens in tests.

Structsยง

GenerateJwtOptions
Options for generating JWT tokens.
Jwk ๐Ÿ”’
JSON Web Key structure.
JwkSet ๐Ÿ”’
JWKS response structure.
MockClaims ๐Ÿ”’
Claims struct used for JWT encoding in the mock server.
OidcMockContext ๐Ÿ”’
Shared context for the OIDC mock server.
OidcMockServer
OIDC mock server for testing.
OpenIdConfiguration ๐Ÿ”’
OpenID Configuration response.

Enumsยง

AudClaim
Audience claim value: either a single string or a list of strings.

Functionsยง

create_jwk ๐Ÿ”’
Creates a JWK from RSA key components.
handle_jwks ๐Ÿ”’
Handler for JWKS endpoint.
handle_openid_config ๐Ÿ”’
Handler for OpenID Configuration endpoint.