pyeudiw.satosa.backends.openid4vp.endpoints package

Submodules

pyeudiw.satosa.backends.openid4vp.endpoints.get_response_endpoint module

class pyeudiw.satosa.backends.openid4vp.endpoints.get_response_endpoint.GetResponseHandler(config: dict, internal_attributes: dict[str, dict[str, str | list[str]]], base_url: str, name: str, auth_callback_func: Callable[[Context, InternalData], Response], converter: AttributeMapper, trust_evaluator: CombinedTrustEvaluator, db_engine=None)[source]

Bases: BaseEndpoint

endpoint(context: Context) Redirect | Response[source]

This endpoint is called by the User-Agent/Wallet Instance after the authorization is done for retrieving the response.

Parameters:

context (the context of current request) – the request context

Returns:

a response containing the response

Return type:

satosa.response.Response

pyeudiw.satosa.backends.openid4vp.endpoints.pre_request_endpoint module

pyeudiw.satosa.backends.openid4vp.endpoints.request_endpoint module

class pyeudiw.satosa.backends.openid4vp.endpoints.request_endpoint.RequestHandler(config: dict, internal_attributes: dict[str, dict[str, str | list[str]]], base_url: str, name: str, auth_callback_func: Callable[[Context, InternalData], Response], converter: AttributeMapper, trust_evaluator: CombinedTrustEvaluator, db_engine=None)[source]

Bases: VPBaseEndpoint

property default_metadata_private_jwk: dict[str, Any]

Returns the default metadata private JWK

Returns:

The first JWK from the metadata_jwks configuration.

Return type:

dict[str, Any]

endpoint(context: Context) Response[source]

Handle the incoming request and return either a Redirect or Response.

This method must be implemented by subclasses to process the given context and return an appropriate HTTP response, such as a redirect to another URL or a standard HTTP response.

Args:

context (Context): The SATOSA context object containing the request and environment information.

Returns:

Redirect | Response: A Redirect or Response object depending on the logic implemented.

Raises:

NotImplementedError: If the method is not overridden by a subclass.

pyeudiw.satosa.backends.openid4vp.endpoints.response_endpoint module

class pyeudiw.satosa.backends.openid4vp.endpoints.response_endpoint.ResponseHandler(config: dict, internal_attributes: dict[str, dict[str, str | list[str]]], base_url: str, name: str, auth_callback_func: Callable[[Context, InternalData], Response], converter: AttributeMapper, trust_evaluator: CombinedTrustEvaluator, db_engine=None)[source]

Bases: VPBaseEndpoint

endpoint(context: Context) Redirect | JsonResponse[source]

Handle the incoming request and return either a Redirect or Response.

This method must be implemented by subclasses to process the given context and return an appropriate HTTP response, such as a redirect to another URL or a standard HTTP response.

Args:

context (Context): The SATOSA context object containing the request and environment information.

Returns:

Redirect | Response: A Redirect or Response object depending on the logic implemented.

Raises:

NotImplementedError: If the method is not overridden by a subclass.

load_credential_presentation_handlers()[source]

pyeudiw.satosa.backends.openid4vp.endpoints.status_endpoint module

class pyeudiw.satosa.backends.openid4vp.endpoints.status_endpoint.StatusHandler(config: dict, internal_attributes: dict[str, dict[str, str | list[str]]], base_url: str, name: str, auth_callback_func: Callable[[Context, InternalData], Response], converter: AttributeMapper, trust_evaluator: CombinedTrustEvaluator, db_engine=None)[source]

Bases: VPBaseEndpoint

endpoint(context: Context) Redirect | Response[source]

This endpoint is called by the User-Agent/Wallet Instance to check the status of the request.

Parameters:

context (the context of current request) – the request context

Returns:

a response containing the status of the request

Return type:

satosa.response.Response

pyeudiw.satosa.backends.openid4vp.endpoints.vp_base_endpoint module

class pyeudiw.satosa.backends.openid4vp.endpoints.vp_base_endpoint.VPBaseEndpoint(config: dict, internal_attributes: dict[str, dict[str, str | list[str]]], base_url: str, name: str, auth_callback: Callable[[Context, Any], Response] | None = None, converter: AttributeMapper | None = None, trust_evaluator=None, db_engine=None)[source]

Bases: BaseEndpoint

Module contents