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.
OidcMockContext ๐Ÿ”’
Shared context for the OIDC mock server.
OidcMockServer
OIDC mock server for testing.
OpenIdConfiguration ๐Ÿ”’
OpenID Configuration response.

Functionsยง

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