pysepal.solara.session_manager.resolve_sepal_headers#

pysepal.solara.session_manager.resolve_sepal_headers(raw_headers)[source]#

Validate a connection’s raw headers into SEPAL headers.

Parameters:

raw_headers (dict) – The request headers Solara exposes for this connection.

Returns:

The validated SEPAL headers.

Raises:

MissingSepalHeadersError – The headers are not SEPAL headers. A per-connection runtime has no second credential source to try: degrading here would hand the caller the container’s platform service account instead of the user’s own identity.

Return type:

SepalHeaders