@thunderid/node 1.11.0 → 1.12.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.
- package/dist/ThunderIDNodeClient.d.ts +66 -1
- package/dist/ThunderIDNodeClient.d.ts.map +1 -1
- package/dist/api/access/evaluateAccess.d.ts +22 -0
- package/dist/api/access/evaluateAccess.d.ts.map +1 -0
- package/dist/api/access/evaluateAccesses.d.ts +10 -0
- package/dist/api/access/evaluateAccesses.d.ts.map +1 -0
- package/dist/api/access/requestAccessApi.d.ts +14 -0
- package/dist/api/access/requestAccessApi.d.ts.map +1 -0
- package/dist/api/access/searchActions.d.ts +10 -0
- package/dist/api/access/searchActions.d.ts.map +1 -0
- package/dist/cjs/index.cjs +440 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +441 -5
- package/dist/models/access-evaluation.d.ts +112 -0
- package/dist/models/access-evaluation.d.ts.map +1 -0
- package/dist/models/config.d.ts +17 -0
- package/dist/models/config.d.ts.map +1 -1
- package/dist/models/management.d.ts +94 -2
- package/dist/models/management.d.ts.map +1 -1
- package/dist/utils/createManagementClient.d.ts.map +1 -1
- package/dist/utils/managementCollections.d.ts +1 -1
- package/dist/utils/managementCollections.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { BackchannelLogoutResult, EmbeddedSelfFlowRequest, EmbeddedSelfFlowResponse, ExtendedAuthorizeRequestUrlParams, IdToken, ManagedFlowListResponse, ManagedUserListResponse, ManagedUserTypeListResponse, OIDCEndpoints, Storage, ThunderIDJavaScriptClient, TokenExchangeRequestConfig, TokenResponse, User } from '@thunderid/javascript';
|
|
1
|
+
import { DeviceAuthorizationOptions, DeviceAuthorizationPollOptions, DeviceAuthorizationResponse, SwitchOrganizationUnitOptions, BackchannelLogoutResult, EmbeddedSelfFlowRequest, EmbeddedSelfFlowResponse, ExtendedAuthorizeRequestUrlParams, IdToken, ManagedFlowListResponse, ManagedUserListResponse, ManagedUserTypeListResponse, OIDCEndpoints, Storage, ThunderIDJavaScriptClient, TokenExchangeRequestConfig, TokenResponse, User } from '@thunderid/javascript';
|
|
2
|
+
import { AccessAction, AccessActionSearchRequest, AccessEvaluationRequest, AccessEvaluationResponse, AccessEvaluationsRequest } from './models/access-evaluation';
|
|
3
|
+
import AuthURLCallback from './models/AuthURLCallback';
|
|
2
4
|
import { ThunderIDNodeConfig } from './models/config';
|
|
3
5
|
import { ThunderIDNodeManagementClient } from './models/management';
|
|
4
6
|
declare class ThunderIDNodeClient<T extends ThunderIDNodeConfig = ThunderIDNodeConfig> extends ThunderIDJavaScriptClient<T> {
|
|
@@ -10,6 +12,69 @@ declare class ThunderIDNodeClient<T extends ThunderIDNodeConfig = ThunderIDNodeC
|
|
|
10
12
|
getInstanceId(): number;
|
|
11
13
|
signIn(...args: any[]): Promise<TokenResponse>;
|
|
12
14
|
getSignInUrl(requestConfig?: ExtendedAuthorizeRequestUrlParams, userId?: string): Promise<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Starts a switch of the session `userId` to the organization unit `organizationUnitId`: builds the
|
|
17
|
+
* unit's authorization URL (`{baseUrl}/ou/{ouId}/oauth2/authorize`) and hands it to `authURLCallback`
|
|
18
|
+
* to redirect the user to. The server reuses the SSO session when the user can sign in there, so
|
|
19
|
+
* normally no credentials are asked. Complete it with `signIn(callback, userId, code, state)` on the
|
|
20
|
+
* callback: the code is redeemed at the unit's token endpoint and replaces the session's tokens.
|
|
21
|
+
* Until then, and when the callback carries an error, the previous session stays as it was.
|
|
22
|
+
*
|
|
23
|
+
* @throws {ThunderIDAPIError} `switchOrganizationUnit-ValidationError-001` without a unit, a session or
|
|
24
|
+
* a callback.
|
|
25
|
+
*/
|
|
26
|
+
switchOrganizationUnit(organizationUnitId: string, options?: SwitchOrganizationUnitOptions & {
|
|
27
|
+
authURLCallback?: AuthURLCallback;
|
|
28
|
+
userId?: string;
|
|
29
|
+
}): Promise<undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Starts a device authorization request (RFC 8628) for an input-constrained device or a CLI tool. Show
|
|
32
|
+
* the user `userCode` and `verificationUri`; keep `deviceCode`, a credential, to yourself and pass it
|
|
33
|
+
* to {@link pollDeviceAuthorization}. It is never logged.
|
|
34
|
+
*/
|
|
35
|
+
startDeviceAuthorization(options?: DeviceAuthorizationOptions): Promise<DeviceAuthorizationResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Polls the token endpoint with the device code until the user approves, denies, or the code expires,
|
|
38
|
+
* and stores the tokens for the session `userId` on approval.
|
|
39
|
+
*
|
|
40
|
+
* @throws {ThunderIDAPIError} `JS-AUTH_CORE-DEVICE2-HE03` when the server ends the request
|
|
41
|
+
* (`access_denied`, `expired_token`), with the OAuth error in `serverError`.
|
|
42
|
+
*/
|
|
43
|
+
pollDeviceAuthorization(deviceCode: string, interval: number, options?: DeviceAuthorizationPollOptions, userId?: string): Promise<TokenResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Introspects a token (RFC 7662) at the server's introspection endpoint, authenticating as this client.
|
|
46
|
+
* An inactive token is a result (`{active: false}`), not an error.
|
|
47
|
+
*/
|
|
48
|
+
introspectToken(token: string, tokenTypeHint?: string): Promise<Record<string, unknown> & {
|
|
49
|
+
active: boolean;
|
|
50
|
+
}>;
|
|
51
|
+
/**
|
|
52
|
+
* The request configuration for access evaluation: the configured server, secret and overrides, with
|
|
53
|
+
* a per-call secret taking precedence.
|
|
54
|
+
*/
|
|
55
|
+
private accessEvaluationConfig;
|
|
56
|
+
/**
|
|
57
|
+
* Asks the server whether a subject may perform an action on a resource (AuthZEN). A denial is a result
|
|
58
|
+
* (`decision: false`), not an error. Uses `accessEvaluation.secret`, or `options.secret`.
|
|
59
|
+
*/
|
|
60
|
+
evaluateAccess(request: AccessEvaluationRequest, options?: {
|
|
61
|
+
secret?: string;
|
|
62
|
+
signal?: AbortSignal;
|
|
63
|
+
}): Promise<AccessEvaluationResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Evaluates a batch of access requests and returns one decision per evaluation, in order.
|
|
66
|
+
*/
|
|
67
|
+
evaluateAccesses(request: AccessEvaluationsRequest, options?: {
|
|
68
|
+
secret?: string;
|
|
69
|
+
signal?: AbortSignal;
|
|
70
|
+
}): Promise<AccessEvaluationResponse[]>;
|
|
71
|
+
/**
|
|
72
|
+
* Asks which actions a subject may perform on a resource.
|
|
73
|
+
*/
|
|
74
|
+
searchActions(request: AccessActionSearchRequest, options?: {
|
|
75
|
+
secret?: string;
|
|
76
|
+
signal?: AbortSignal;
|
|
77
|
+
}): Promise<AccessAction[]>;
|
|
13
78
|
signOut(...args: any[]): Promise<string>;
|
|
14
79
|
/**
|
|
15
80
|
* Handles an OpenID Connect back-channel logout: validates the logout token the server posted,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThunderIDNodeClient.d.ts","sourceRoot":"","sources":["../src/ThunderIDNodeClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EAExB,iCAAiC,EAIjC,OAAO,EAIP,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,aAAa,EAGb,OAAO,EAEP,yBAAyB,EACzB,0BAA0B,EAE1B,aAAa,EAEb,IAAI,EACL,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ThunderIDNodeClient.d.ts","sourceRoot":"","sources":["../src/ThunderIDNodeClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,0BAA0B,EAC1B,8BAA8B,EAC9B,2BAA2B,EAE3B,6BAA6B,EAE7B,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EAExB,iCAAiC,EAIjC,OAAO,EAIP,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,aAAa,EAGb,OAAO,EAEP,yBAAyB,EACzB,0BAA0B,EAE1B,aAAa,EAEb,IAAI,EACL,MAAM,uBAAuB,CAAC;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IACU,QAAQ,CACnB,OAAO,GAAE;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAM,EACtF,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,uBAAuB,CAAC;IAInC;;;;OAIG;IACU,QAAQ,CACnB,OAAO,GAAE;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAM,EACxF,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,uBAAuB,CAAC;IAInC;;;;OAIG;IACU,YAAY,CACvB,OAAO,GAAE;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAM,EACrE,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,2BAA2B,CAAC;CAGxC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AccessEvaluationRequest, AccessEvaluationRequestConfig, AccessEvaluationResponse } from '../../models/access-evaluation';
|
|
2
|
+
/**
|
|
3
|
+
* Asks the server's AuthZEN policy decision point whether a subject may perform an action on a resource,
|
|
4
|
+
* at the `access_evaluation_endpoint` from `/.well-known/authzen-configuration`.
|
|
5
|
+
*
|
|
6
|
+
* Server-side only: it is authorized by the server-level secret in the `Direct-Auth-Secret` header,
|
|
7
|
+
* which a browser or mobile app cannot hold.
|
|
8
|
+
*
|
|
9
|
+
* A denial is a result: `{decision: false}`, with the reason in `context`. Only a transport failure or a
|
|
10
|
+
* 4xx/5xx answer throws.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* const {decision} = await evaluateAccess(
|
|
15
|
+
* {subject: {type: 'user', id: userId}, resource: {type: 'https://api.example.com/booking'}, action: {name: 'booking:read'}},
|
|
16
|
+
* {baseUrl: 'https://localhost:8090', secret: process.env.THUNDERID_DIRECT_AUTH_SECRET!},
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare const evaluateAccess: (request: AccessEvaluationRequest, config: AccessEvaluationRequestConfig) => Promise<AccessEvaluationResponse>;
|
|
21
|
+
export default evaluateAccess;
|
|
22
|
+
//# sourceMappingURL=evaluateAccess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluateAccess.d.ts","sourceRoot":"","sources":["../../../src/api/access/evaluateAccess.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,gCAAgC,CAAC;AAExC;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,cAAc,GAClB,SAAS,uBAAuB,EAChC,QAAQ,6BAA6B,KACpC,OAAO,CAAC,wBAAwB,CAC0D,CAAC;AAE9F,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AccessEvaluationRequestConfig, AccessEvaluationResponse, AccessEvaluationsRequest } from '../../models/access-evaluation';
|
|
2
|
+
/**
|
|
3
|
+
* Evaluates a batch of access requests at the `access_evaluations_endpoint`, and returns one decision
|
|
4
|
+
* per evaluation, in order. `defaults` apply to every evaluation that does not set that member itself.
|
|
5
|
+
*
|
|
6
|
+
* Server-side only, like {@link evaluateAccess}. A denial is a result, not an error.
|
|
7
|
+
*/
|
|
8
|
+
declare const evaluateAccesses: ({ defaults, evaluations }: AccessEvaluationsRequest, config: AccessEvaluationRequestConfig) => Promise<AccessEvaluationResponse[]>;
|
|
9
|
+
export default evaluateAccesses;
|
|
10
|
+
//# sourceMappingURL=evaluateAccesses.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluateAccesses.d.ts","sourceRoot":"","sources":["../../../src/api/access/evaluateAccesses.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,gCAAgC,CAAC;AAExC;;;;;GAKG;AACH,QAAA,MAAM,gBAAgB,GACpB,2BAAyB,wBAAwB,EACjD,QAAQ,6BAA6B,KACpC,OAAO,CAAC,wBAAwB,EAAE,CASpC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AccessEvaluationRequestConfig, AuthZENConfiguration } from '../../models/access-evaluation';
|
|
2
|
+
type AccessEndpointKey = 'evaluation' | 'evaluations' | 'searchAction';
|
|
3
|
+
/**
|
|
4
|
+
* Reads the AuthZEN metadata of the server at `baseUrl` and checks that its `policy_decision_point`
|
|
5
|
+
* names that server exactly (apart from a trailing slash).
|
|
6
|
+
*/
|
|
7
|
+
export declare const getAuthZENConfiguration: (operation: string, { baseUrl, fetcher, signal }: Pick<AccessEvaluationRequestConfig, "baseUrl" | "fetcher" | "signal">) => Promise<AuthZENConfiguration>;
|
|
8
|
+
/**
|
|
9
|
+
* Posts an AuthZEN request with the `Direct-Auth-Secret` header. A `4xx` or `5xx` answer is an error
|
|
10
|
+
* with the server's `error` as the message; 401, 403 and 404 keep distinct codes.
|
|
11
|
+
*/
|
|
12
|
+
declare const requestAccessApi: <T>(operation: string, key: AccessEndpointKey, config: AccessEvaluationRequestConfig, body: unknown) => Promise<T>;
|
|
13
|
+
export default requestAccessApi;
|
|
14
|
+
//# sourceMappingURL=requestAccessApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestAccessApi.d.ts","sourceRoot":"","sources":["../../../src/api/access/requestAccessApi.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,6BAA6B,EAAE,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEnG,KAAK,iBAAiB,GAAG,YAAY,GAAG,aAAa,GAAG,cAAc,CAAC;AAUvE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAClC,WAAW,MAAM,EACjB,8BAA4B,IAAI,CAAC,6BAA6B,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC,KAChG,OAAO,CAAC,oBAAoB,CA6C9B,CAAC;AAuCF;;;GAGG;AACH,QAAA,MAAM,gBAAgB,GAAU,CAAC,EAC/B,WAAW,MAAM,EACjB,KAAK,iBAAiB,EACtB,QAAQ,6BAA6B,EACrC,MAAM,OAAO,KACZ,OAAO,CAAC,CAAC,CAgFX,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AccessAction, AccessActionSearchRequest, AccessEvaluationRequestConfig } from '../../models/access-evaluation';
|
|
2
|
+
/**
|
|
3
|
+
* Asks which actions a subject may perform on a resource, at the `search_action_endpoint`
|
|
4
|
+
* (`/access/v1/search/action`). Server-side only, like {@link evaluateAccess}.
|
|
5
|
+
*
|
|
6
|
+
* @returns The actions the subject may perform.
|
|
7
|
+
*/
|
|
8
|
+
declare const searchActions: (request: AccessActionSearchRequest, config: AccessEvaluationRequestConfig) => Promise<AccessAction[]>;
|
|
9
|
+
export default searchActions;
|
|
10
|
+
//# sourceMappingURL=searchActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchActions.d.ts","sourceRoot":"","sources":["../../../src/api/access/searchActions.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EACZ,yBAAyB,EAEzB,6BAA6B,EAC9B,MAAM,gCAAgC,CAAC;AAExC;;;;;GAKG;AACH,QAAA,MAAM,aAAa,GACjB,SAAS,yBAAyB,EAClC,QAAQ,6BAA6B,KACpC,OAAO,CAAC,YAAY,EAAE,CASxB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|