@passflow/react 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import type { FC } from 'react';
3
3
  * OIDC consent controller, mounted by the host app on `/web/consent`.
4
4
  *
5
5
  * Standalone by design: it needs no PassflowProvider. The staged request is
6
- * addressed by `parent_challenge_id` on the URL and read with a same-origin
6
+ * addressed by `consent_challenge_id` on the URL and read with a same-origin
7
7
  * cookie, so there is no SDK client, no app settings lookup, and no token to
8
8
  * hold — which is also why mounting it inside the provider would be actively
9
9
  * wrong, since the provider's session-exchange probe would fire against a
@@ -3,7 +3,7 @@ import type { FC } from 'react';
3
3
  * OIDC consent controller, mounted by the host app on `/web/consent`.
4
4
  *
5
5
  * Standalone by design: it needs no PassflowProvider. The staged request is
6
- * addressed by `parent_challenge_id` on the URL and read with a same-origin
6
+ * addressed by `consent_challenge_id` on the URL and read with a same-origin
7
7
  * cookie, so there is no SDK client, no app settings lookup, and no token to
8
8
  * hold — which is also why mounting it inside the provider would be actively
9
9
  * wrong, since the provider's session-exchange probe would fire against a
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * The OIDC consent decision, as a hook.
3
3
  *
4
- * The URL is the bearer. `parent_challenge_id` identifies a staged
5
- * authorization request the server is holding, and possessing that id is what
6
- * authorizes reading it — there is no Authorization header on the GET. The
7
- * server hands back a `csrf_token` with the request metadata, and every
8
- * state-changing POST must carry it back in `X-Passflow-CSRF`. That token is
9
- * the only thing separating a real decision from one a third-party page forged
10
- * on the user's behalf, so it is never optional and never cached across
4
+ * The URL is the bearer. `consent_challenge_id` identifies the consent step the
5
+ * server staged for the user who just signed in, and that id is handed only to
6
+ * this browser, in the redirect that ends sign-in. Possessing it is what
7
+ * authorizes reading the staged request — there is no Authorization header on
8
+ * the GET. The server hands back a `csrf_token` with the request metadata, and
9
+ * every state-changing POST must carry it back in `X-Passflow-CSRF`. That token
10
+ * is the only thing separating a real decision from one a third-party page
11
+ * forged on the user's behalf, so it is never optional and never cached across
11
12
  * challenges.
12
13
  *
13
14
  * The decision endpoints answer with a discriminated response rather than a
@@ -21,7 +22,7 @@ export type ConsentScopeMetadata = {
21
22
  label: string;
22
23
  description: string;
23
24
  };
24
- /** What GET /oidc/requests/{parent_challenge_id} hands the page to render itself. */
25
+ /** What GET /oidc/requests/{consent_challenge_id} hands the page to render itself. */
25
26
  export type ConsentInfo = {
26
27
  client_id: string;
27
28
  app_name: string;
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * The OIDC consent decision, as a hook.
3
3
  *
4
- * The URL is the bearer. `parent_challenge_id` identifies a staged
5
- * authorization request the server is holding, and possessing that id is what
6
- * authorizes reading it — there is no Authorization header on the GET. The
7
- * server hands back a `csrf_token` with the request metadata, and every
8
- * state-changing POST must carry it back in `X-Passflow-CSRF`. That token is
9
- * the only thing separating a real decision from one a third-party page forged
10
- * on the user's behalf, so it is never optional and never cached across
4
+ * The URL is the bearer. `consent_challenge_id` identifies the consent step the
5
+ * server staged for the user who just signed in, and that id is handed only to
6
+ * this browser, in the redirect that ends sign-in. Possessing it is what
7
+ * authorizes reading the staged request — there is no Authorization header on
8
+ * the GET. The server hands back a `csrf_token` with the request metadata, and
9
+ * every state-changing POST must carry it back in `X-Passflow-CSRF`. That token
10
+ * is the only thing separating a real decision from one a third-party page
11
+ * forged on the user's behalf, so it is never optional and never cached across
11
12
  * challenges.
12
13
  *
13
14
  * The decision endpoints answer with a discriminated response rather than a
@@ -21,7 +22,7 @@ export type ConsentScopeMetadata = {
21
22
  label: string;
22
23
  description: string;
23
24
  };
24
- /** What GET /oidc/requests/{parent_challenge_id} hands the page to render itself. */
25
+ /** What GET /oidc/requests/{consent_challenge_id} hands the page to render itself. */
25
26
  export type ConsentInfo = {
26
27
  client_id: string;
27
28
  app_name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-consent.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-consent.ts"],"names":[],"mappings":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AAK,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B,mEAAmE;IACnE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,oBAAoB,CAAC;IACvD,4DAA4D;IAC5D,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,2CAA2C;IAC3C,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,4DAA4D;IAC5D,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B,CAAC;AA6BF,eAAO,MAAM,UAAU,QAAO,eAwJ7B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@passflow/react",
3
3
  "description": "Passflow React UI Kit",
4
- "version": "0.21.0",
4
+ "version": "0.22.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",