Repository navigation
v0.36.0
·
35 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
What changes in 0.36.0
0.36.0 gives an async host one call for a signed-in person's groups, fresh from the issuer at each call. Nothing a host uses today changes.
Per app
- hopin: replace
hopin.agent.session_groups.SessionGroupswithwebauth.session_groups.SessionGroups, and delete the copy with its test.- Pass the session transaction where the copy took the bare store:
lambda: nullcontext(sessions). - The class has no
session_id_of; callwebauth.dependencies.session_id_from_request(connection, config)where the session id itself is needed.
- Pass the session transaction where the copy took the bare store:
- skat:
of_session(session_id)is the entry for a plain HTTP route. The store needs nothing beyondreplace_refresh_token. - presentator, songmaker, speech-runtime: nothing to change beyond the pin, and no need to take this release for itself.
New
webauth.session_groups.SessionGroups(relying_party, session_transaction, config)(#711, PR #712;docs/host-contract.md, GROUPS-28 to GROUPS-30).await of_session(session_id)andawait of_connection(connection)answer the groups as afrozenset[str], or theAccessTokenRefusalthatcurrent_groupsanswers, by onecurrent_groupscall on a worker thread.- Fresh at each call. Each call is one refresh grant; nothing is cached.
- No session, no grant. A connection without a session answers
SIGN_IN_AGAINand makes no grant. - A cancelled caller gets no answer, but its grant still stores its rotated refresh token. The cancellation reaches the caller after the grant ends, so a timeout around the call fires only then.
- No lock. Overlapping calls of one session both succeed where the issuer lets a used refresh token be used again, and the last replacement written wins (GROUPS-25 to GROUPS-27). Where an issuer revokes a used refresh token, an overlapping call can answer
SIGN_IN_AGAIN; serialising a session's grants is then the host's.
webauth.admission.app_roletakes anyCollection[str]of group paths, so the reader'sfrozensetpasses to it as it is for a subgroup-aware check (GROUPS-12). A tuple or a list works as before.
Breaking
None. No migration.
Not visible to a host
- A release is dispatched with the version alone and gated before its tag exists, through quality's shared release workflows (#593, PR #713). This release is the first one made that way.
- The private worker helper moved to
webauth/_worker.py.
Full Changelog: v0.35.0...v0.36.0