Skip to content

v0.1.7 — login scopes parameter (#8)

Choose a tag to compare

@ngjunsiang ngjunsiang released this 07 Nov 10:10
· 7 commits to main since this release
c318955

feat: login flows can request scopes beyond campus.profile (#8). context.start_login gains a scopes parameter and OAuthLoginManager a login_scopes parameter (threaded through the auth blueprint's /login view); None keeps the ["campus.profile"] default. Apps needing management scopes on the signed-in user's token — the #865/#883 two-leg capability leg, e.g. nyxchange-timetable-v2's timetable:admin — no longer monkeypatch start_login. campus.auth validates the requested scopes against the minting client's allowed_scopes cap fail-closed: extend the client cap BEFORE deploying a wider request. Additive (patch bump).