@owlmeans/client-iam 0.1.18-rc.30 → 0.1.18-rc.31

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.
package/build/login.d.ts CHANGED
@@ -1,17 +1,9 @@
1
- import type { CommonEntrypoint } from '@owlmeans/entrypoint';
2
1
  /**
3
- * Wire this app's entrypoints for IAM sign-in.
4
- *
5
- * The companion to {@link appendIam}: that one prepares the context, this one prepares the
6
- * entrypoint list — it adds the authorization endpoints the browser calls and attaches the IAM
7
- * dispatcher screen, and it prepends the OIDC guard to every entrypoint that already asks for
8
- * authentication.
9
- *
10
- * Call it exactly ONCE per entrypoint list. It appends to the list it is given rather than
11
- * returning a new one, so a second call adds the same entrypoints twice and the elevation that
12
- * follows throws `Entrypoint with alias … is already elevated`.
2
+ * IAM sign-in is assembled from immutable declarations: decorate the app's protocol tree with
3
+ * {@link withIamGuard}, then append the browser-local {@link iamEntrypoints} bindings.
13
4
  */
14
- export declare const setupIam: (entrypoints: CommonEntrypoint[], coguards?: string | string[]) => void;
5
+ export { withOidcGuard as withIamGuard } from '@owlmeans/oidc';
6
+ export { oidcEntrypoints as iamEntrypoints } from '@owlmeans/web-oidc-rp';
15
7
  /**
16
8
  * How a user signs in and out.
17
9
  *
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../src/login.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAG5D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,QAAQ,gBAAiB,gBAAgB,EAAE,aAAa,MAAM,GAAG,MAAM,EAAE,KAAG,IAExF,CAAA;AAED;;;;;;;;GAQG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACvE,YAAY,EACV,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EACzE,WAAW,EAAE,iBAAiB,EAAE,gBAAgB,GACjD,MAAM,6BAA6B,CAAA"}
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../src/login.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,aAAa,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,eAAe,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEzE;;;;;;;;GAQG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACvE,YAAY,EACV,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EACzE,WAAW,EAAE,iBAAiB,EAAE,gBAAgB,GACjD,MAAM,6BAA6B,CAAA"}
package/build/login.js CHANGED
@@ -1,19 +1,9 @@
1
- import { setupOidcGuard } from '@owlmeans/web-oidc-rp';
2
1
  /**
3
- * Wire this app's entrypoints for IAM sign-in.
4
- *
5
- * The companion to {@link appendIam}: that one prepares the context, this one prepares the
6
- * entrypoint list — it adds the authorization endpoints the browser calls and attaches the IAM
7
- * dispatcher screen, and it prepends the OIDC guard to every entrypoint that already asks for
8
- * authentication.
9
- *
10
- * Call it exactly ONCE per entrypoint list. It appends to the list it is given rather than
11
- * returning a new one, so a second call adds the same entrypoints twice and the elevation that
12
- * follows throws `Entrypoint with alias … is already elevated`.
2
+ * IAM sign-in is assembled from immutable declarations: decorate the app's protocol tree with
3
+ * {@link withIamGuard}, then append the browser-local {@link iamEntrypoints} bindings.
13
4
  */
14
- export const setupIam = (entrypoints, coguards) => {
15
- setupOidcGuard(entrypoints, coguards);
16
- };
5
+ export { withOidcGuard as withIamGuard } from '@owlmeans/oidc';
6
+ export { oidcEntrypoints as iamEntrypoints } from '@owlmeans/web-oidc-rp';
17
7
  /**
18
8
  * How a user signs in and out.
19
9
  *
@@ -1 +1 @@
1
- {"version":3,"file":"login.js","sourceRoot":"","sources":["../src/login.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,WAA+B,EAAE,QAA4B,EAAQ,EAAE;IAC9F,cAAc,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAA;AACvC,CAAC,CAAA;AAED;;;;;;;;GAQG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA"}
1
+ {"version":3,"file":"login.js","sourceRoot":"","sources":["../src/login.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,aAAa,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC9D,OAAO,EAAE,eAAe,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEzE;;;;;;;;GAQG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/client-iam",
3
- "version": "0.1.18-rc.30",
3
+ "version": "0.1.18-rc.31",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -22,14 +22,14 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@owlmeans/client-auth": "^0.1.18-rc.22",
25
+ "@owlmeans/client-auth": "^0.1.18-rc.23",
26
26
  "@owlmeans/consent": "^0.1.18-rc.4",
27
- "@owlmeans/context": "^0.1.18-rc.10",
28
- "@owlmeans/entrypoint": "^0.1.18-rc.13",
29
- "@owlmeans/iam": "^0.1.18-rc.18",
30
- "@owlmeans/oidc": "^0.1.18-rc.15",
31
- "@owlmeans/web-client": "^0.1.18-rc.26",
32
- "@owlmeans/web-oidc-rp": "^0.1.18-rc.28"
27
+ "@owlmeans/context": "^0.1.18-rc.11",
28
+ "@owlmeans/entrypoint": "^0.1.18-rc.14",
29
+ "@owlmeans/iam": "^0.1.18-rc.19",
30
+ "@owlmeans/oidc": "^0.1.18-rc.24",
31
+ "@owlmeans/web-client": "^0.1.18-rc.27",
32
+ "@owlmeans/web-oidc-rp": "^0.1.18-rc.29"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@owlmeans/dep-config": "workspace:*",
package/src/login.ts CHANGED
@@ -1,21 +1,9 @@
1
- import type { CommonEntrypoint } from '@owlmeans/entrypoint'
2
- import { setupOidcGuard } from '@owlmeans/web-oidc-rp'
3
-
4
1
  /**
5
- * Wire this app's entrypoints for IAM sign-in.
6
- *
7
- * The companion to {@link appendIam}: that one prepares the context, this one prepares the
8
- * entrypoint list — it adds the authorization endpoints the browser calls and attaches the IAM
9
- * dispatcher screen, and it prepends the OIDC guard to every entrypoint that already asks for
10
- * authentication.
11
- *
12
- * Call it exactly ONCE per entrypoint list. It appends to the list it is given rather than
13
- * returning a new one, so a second call adds the same entrypoints twice and the elevation that
14
- * follows throws `Entrypoint with alias … is already elevated`.
2
+ * IAM sign-in is assembled from immutable declarations: decorate the app's protocol tree with
3
+ * {@link withIamGuard}, then append the browser-local {@link iamEntrypoints} bindings.
15
4
  */
16
- export const setupIam = (entrypoints: CommonEntrypoint[], coguards?: string | string[]): void => {
17
- setupOidcGuard(entrypoints, coguards)
18
- }
5
+ export { withOidcGuard as withIamGuard } from '@owlmeans/oidc'
6
+ export { oidcEntrypoints as iamEntrypoints } from '@owlmeans/web-oidc-rp'
19
7
 
20
8
  /**
21
9
  * How a user signs in and out.