Skip to content

[monitoringlib/auth] Add support for JWTs as client authentification (RFC 7523 section 2.2) - #1683

Open
the-glu wants to merge 1 commit into
interuss:mainfrom
Orbitalize:implement_jwt-bearer_auth
Open

[monitoringlib/auth] Add support for JWTs as client authentification (RFC 7523 section 2.2)#1683
the-glu wants to merge 1 commit into
interuss:mainfrom
Orbitalize:implement_jwt-bearer_auth

Conversation

@the-glu

@the-glu the-glu commented Sep 1, 2026

Copy link
Copy Markdown
Member

This PR add support for client authentication as JWTs, implementing RFC 7523 section 2.2.

On top of units tests, this as been tested with a keycloak, configured as such:

image

with the test auth key (reused as a pair):

image

leading to successful token retrieval:

uv run python -m monitoring.get_access_token --spec "PrivateKeyJWT(http://localhost:8181/realms/uss/protocol/openid-connect/token, https://uss1.localutm, key_path=build/test-certs/auth2.key)" --audience https://dss.uss1.localutm --scopes "https://dss.uss1.localutm"

eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICItVXVCUjc2eXVpMkU3Ym90REw1THpLQ2d1Rk16Q1VMMlhzRUIzY3VtZzRNIn0.eyJleHAiOjE3ODgyODExOTIsImlhdCI6MTc4ODI4MDg5MiwianRpIjoidHJydGNjOjljNjkwZmRlLTNjYmUtOWE3OC03NjYyLWRjZGE0MmU0YjkxOCIsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODE4MS9yZWFsbXMvdXNzIiwiYXVkIjoiYWNjb3VudCIsInN1YiI6ImUxNzFkOWVhLTc1MDQtNGZjZC1hNzUyLWNhMTA4ODRmNDI5OSIsInR5cCI6IkJlYXJlciIsImF6cCI6Imh0dHBzOi8vdXNzMS5sb2NhbHV0bSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiLyoiXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImRlZmF1bHQtcm9sZXMtdXNzIiwib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoicHJvZmlsZSBlbWFpbCIsImNsaWVudEhvc3QiOiIxNzIuMTcuMC4xIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtaHR0cHM6Ly91c3MxLmxvY2FsdXRtIiwiY2xpZW50QWRkcmVzcyI6IjE3Mi4xNy4wLjEiLCJjbGllbnRfaWQiOiJodHRwczovL3VzczEubG9jYWx1dG0ifQ.(REDACTED)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant