request_token.build_jwt()

A helper function to build a JWT assertion for Maskinporten token requests.

Usage

Source

request_token.build_jwt(
    cfg,
    issuer_url,
)

Parameters

cfg: MaskinportenSecrets

The configuration object containing necessary credentials.

issuer_url: str
The URL of the token issuer.

Returns

str: str
The encoded JWT assertion.