@owlmeans/client-iam 0.1.18-rc.1 → 0.1.18-rc.10
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/append.d.ts.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/login.d.ts +26 -0
- package/build/login.d.ts.map +1 -0
- package/build/login.js +27 -0
- package/build/login.js.map +1 -0
- package/package.json +8 -6
- package/src/index.ts +1 -0
- package/src/login.ts +30 -0
package/build/append.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"append.d.ts","sourceRoot":"","sources":["../src/append.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAGtD,KAAK,eAAe,GAAG,SAAS,GAAG,gBAAgB,CAAA;AACnD,KAAK,gBAAgB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,IAAI,UAAU,CAAC,CAAC,CAAC,CAAA;AAElF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,eAAe,EAAE,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"append.d.ts","sourceRoot":"","sources":["../src/append.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAGtD,KAAK,eAAe,GAAG,SAAS,GAAG,gBAAgB,CAAA;AACnD,KAAK,gBAAgB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,IAAI,UAAU,CAAC,CAAC,CAAC,CAAA;AAElF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,eAAe,EAAE,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC,EAChF,SAAS,CAAC,KACT,CAGF,CAAA"}
|
package/build/index.d.ts
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,eAAe,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,eAAe,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
|
package/build/index.js
CHANGED
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
|
package/build/login.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CommonEntrypoint } from '@owlmeans/entrypoint';
|
|
2
|
+
/**
|
|
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`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const setupIam: (entrypoints: CommonEntrypoint[], coguards?: string | string[]) => void;
|
|
15
|
+
/**
|
|
16
|
+
* How a user signs in and out.
|
|
17
|
+
*
|
|
18
|
+
* Re-exported here so an app has one IAM import rather than three, and so the control it renders
|
|
19
|
+
* carries no knowledge of the browsing context it happens to be in — whether the flow can redirect
|
|
20
|
+
* from where it is, or has to run one window up, is decided by the login plugin the framework
|
|
21
|
+
* selected. See the `login-plugins` guidance for what that means and how to add a mechanic.
|
|
22
|
+
*/
|
|
23
|
+
export { useLogin, useLogout } from '@owlmeans/client-auth/login';
|
|
24
|
+
export { LoginOutcome } from '@owlmeans/client-auth/login';
|
|
25
|
+
export type { LoginPlugin, LoginRequest, LoginService } from '@owlmeans/client-auth/login';
|
|
26
|
+
//# sourceMappingURL=login.d.ts.map
|
|
@@ -0,0 +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,GAAI,aAAa,gBAAgB,EAAE,EAAE,WAAW,MAAM,GAAG,MAAM,EAAE,KAAG,IAExF,CAAA;AAED;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA"}
|
package/build/login.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { setupOidcGuard } from '@owlmeans/web-oidc-rp';
|
|
2
|
+
/**
|
|
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`.
|
|
13
|
+
*/
|
|
14
|
+
export const setupIam = (entrypoints, coguards) => {
|
|
15
|
+
setupOidcGuard(entrypoints, coguards);
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* How a user signs in and out.
|
|
19
|
+
*
|
|
20
|
+
* Re-exported here so an app has one IAM import rather than three, and so the control it renders
|
|
21
|
+
* carries no knowledge of the browsing context it happens to be in — whether the flow can redirect
|
|
22
|
+
* from where it is, or has to run one window up, is decided by the login plugin the framework
|
|
23
|
+
* selected. See the `login-plugins` guidance for what that means and how to add a mechanic.
|
|
24
|
+
*/
|
|
25
|
+
export { useLogin, useLogout } from '@owlmeans/client-auth/login';
|
|
26
|
+
export { LoginOutcome } from '@owlmeans/client-auth/login';
|
|
27
|
+
//# sourceMappingURL=login.js.map
|
|
@@ -0,0 +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;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EAAE,YAAY,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.
|
|
3
|
+
"version": "0.1.18-rc.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -22,11 +22,13 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@owlmeans/
|
|
26
|
-
"@owlmeans/
|
|
27
|
-
"@owlmeans/
|
|
28
|
-
"@owlmeans/
|
|
29
|
-
"@owlmeans/
|
|
25
|
+
"@owlmeans/client-auth": "^0.1.18-rc.8",
|
|
26
|
+
"@owlmeans/context": "^0.1.18-rc.6",
|
|
27
|
+
"@owlmeans/entrypoint": "^0.1.18-rc.6",
|
|
28
|
+
"@owlmeans/iam": "^0.1.18-rc.7",
|
|
29
|
+
"@owlmeans/oidc": "^0.1.18-rc.6",
|
|
30
|
+
"@owlmeans/web-client": "^0.1.18-rc.8",
|
|
31
|
+
"@owlmeans/web-oidc-rp": "^0.1.18-rc.9"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
34
|
"@owlmeans/dep-config": "workspace:*",
|
package/src/index.ts
CHANGED
package/src/login.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { CommonEntrypoint } from '@owlmeans/entrypoint'
|
|
2
|
+
import { setupOidcGuard } from '@owlmeans/web-oidc-rp'
|
|
3
|
+
|
|
4
|
+
/**
|
|
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`.
|
|
15
|
+
*/
|
|
16
|
+
export const setupIam = (entrypoints: CommonEntrypoint[], coguards?: string | string[]): void => {
|
|
17
|
+
setupOidcGuard(entrypoints, coguards)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* How a user signs in and out.
|
|
22
|
+
*
|
|
23
|
+
* Re-exported here so an app has one IAM import rather than three, and so the control it renders
|
|
24
|
+
* carries no knowledge of the browsing context it happens to be in — whether the flow can redirect
|
|
25
|
+
* from where it is, or has to run one window up, is decided by the login plugin the framework
|
|
26
|
+
* selected. See the `login-plugins` guidance for what that means and how to add a mechanic.
|
|
27
|
+
*/
|
|
28
|
+
export { useLogin, useLogout } from '@owlmeans/client-auth/login'
|
|
29
|
+
export { LoginOutcome } from '@owlmeans/client-auth/login'
|
|
30
|
+
export type { LoginPlugin, LoginRequest, LoginService } from '@owlmeans/client-auth/login'
|