airflow.providers.edge3.worker_api.auth¶
Attributes¶
Classes¶
Result of authorizing an OIDC worker token beyond signature verification. |
|
Request context passed to a |
Functions¶
|
|
|
Check if the JWT token is correct. |
|
Check if the JWT token is correct for REST API requests. |
Module Contents¶
- class airflow.providers.edge3.worker_api.auth.WorkerTokenAuthorization[source]¶
Bases:
TypedDictResult of authorizing an OIDC worker token beyond signature verification.
Returned by a
[edge] jwt_verifiercallable to answer “may this token act as an edge worker?”.authorizedmust beTruefor the request to proceed; a falsy result (or a raised exception) rejects it.
- class airflow.providers.edge3.worker_api.auth.WorkerTokenContext[source]¶
Request context passed to a
[edge] jwt_verifieralongside the token claims.