Skip to content

v0.9.0

Choose a tag to compare

@erudenko erudenko released this 28 Oct 04:13
· 123 commits to main since this release
v0.9.0
5d96dd0

Added

  • ConsentFlow, the OIDC consent screen as an SDK flow. Mount it on /web/consent; it composes the same LoginScreen as sign-in, so consent no longer drifts from the rest of the hosted pages. It is standalone and needs no PassflowProvider: the staged request is addressed by parent_challenge_id on the URL and read with a same-origin cookie.
  • useConsent and its types (UseConsentProps, ConsentStatus, ConsentInfo, ConsentError, ConsentScopeMetadata) for hosts that render their own consent UI. Decisions carry the server's CSRF token and honour both query and form_post response modes.
  • A consent state on LoginScreen (LoginConsentState, LoginConsentScope): per-scope switches that all start granted, with Allow and Deny as peer actions.

Fixed

  • Switch now generates a unique input id. Every instance previously used the id switch, so with more than one on a page each label resolved to the first input and clicking a later row toggled the first. Pass id to override.