@atlasauth/backend 0.25.0 → 0.27.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/CHANGELOG.md +42 -1
- package/dist/client/abac.d.ts +454 -0
- package/dist/client/abac.js +123 -0
- package/dist/client/abac.js.map +1 -1
- package/dist/client/access-policies.d.ts +84 -2
- package/dist/client/access-policies.js +8 -0
- package/dist/client/access-policies.js.map +1 -1
- package/dist/client/actions.d.ts +1 -1
- package/dist/client/actions.js.map +1 -1
- package/dist/client/agent-platform.d.ts +294 -0
- package/dist/client/agent-platform.js +132 -0
- package/dist/client/agent-platform.js.map +1 -0
- package/dist/client/analytics-reports.d.ts +1 -1
- package/dist/client/app-catalog.d.ts +60 -1
- package/dist/client/app-catalog.js +32 -2
- package/dist/client/app-catalog.js.map +1 -1
- package/dist/client/authz-decisions.d.ts +154 -0
- package/dist/client/authz-decisions.js +53 -0
- package/dist/client/authz-decisions.js.map +1 -0
- package/dist/client/connections.d.ts +519 -0
- package/dist/client/connections.js +171 -0
- package/dist/client/connections.js.map +1 -0
- package/dist/client/custom-oauth-providers.d.ts +15 -0
- package/dist/client/custom-oauth-providers.js.map +1 -1
- package/dist/client/desktop-mfa.d.ts +141 -0
- package/dist/client/desktop-mfa.js +58 -0
- package/dist/client/desktop-mfa.js.map +1 -0
- package/dist/client/devices.d.ts +130 -0
- package/dist/client/devices.js +54 -0
- package/dist/client/devices.js.map +1 -1
- package/dist/client/email-templates.d.ts +1 -1
- package/dist/client/email-templates.js.map +1 -1
- package/dist/client/fga.d.ts +301 -5
- package/dist/client/fga.js +81 -1
- package/dist/client/fga.js.map +1 -1
- package/dist/client/iga.d.ts +436 -0
- package/dist/client/iga.js +82 -0
- package/dist/client/iga.js.map +1 -0
- package/dist/client/index.d.ts +3767 -2443
- package/dist/client/index.js +51 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/least-privilege.d.ts +95 -0
- package/dist/client/least-privilege.js +28 -0
- package/dist/client/least-privilege.js.map +1 -0
- package/dist/client/log-streams.d.ts +1 -1
- package/dist/client/managed-grants.d.ts +52 -0
- package/dist/client/managed-grants.js +28 -0
- package/dist/client/managed-grants.js.map +1 -0
- package/dist/client/mcp-gateways.d.ts +220 -2
- package/dist/client/mcp-gateways.js +74 -0
- package/dist/client/mcp-gateways.js.map +1 -1
- package/dist/client/messaging.d.ts +11 -2
- package/dist/client/messaging.js.map +1 -1
- package/dist/client/oauth-clients.d.ts +4 -0
- package/dist/client/oauth-clients.js.map +1 -1
- package/dist/client/oauth-protocols.d.ts +116 -0
- package/dist/client/oauth-protocols.js +54 -0
- package/dist/client/oauth-protocols.js.map +1 -0
- package/dist/client/oauth-providers.d.ts +4 -4
- package/dist/client/openfga.d.ts +90 -3
- package/dist/client/openfga.js +27 -1
- package/dist/client/openfga.js.map +1 -1
- package/dist/client/org-ldap-connections.d.ts +3 -0
- package/dist/client/org-ldap-connections.js.map +1 -1
- package/dist/client/organizations.d.ts +14 -0
- package/dist/client/organizations.js.map +1 -1
- package/dist/client/policy-bundles.d.ts +105 -0
- package/dist/client/policy-bundles.js +38 -0
- package/dist/client/policy-bundles.js.map +1 -0
- package/dist/client/resources.d.ts +1 -0
- package/dist/client/resources.js.map +1 -1
- package/dist/client/risk-containment.d.ts +244 -0
- package/dist/client/risk-containment.js +120 -0
- package/dist/client/risk-containment.js.map +1 -0
- package/dist/client/saml-idp.d.ts +183 -0
- package/dist/client/saml-idp.js +71 -0
- package/dist/client/saml-idp.js.map +1 -0
- package/dist/client/scim-provisioning.d.ts +100 -4
- package/dist/client/scim-provisioning.js +30 -0
- package/dist/client/scim-provisioning.js.map +1 -1
- package/dist/client/scim-tokens.d.ts +34 -0
- package/dist/client/scim-tokens.js +17 -0
- package/dist/client/scim-tokens.js.map +1 -1
- package/dist/client/service-connectors.d.ts +1 -1
- package/dist/client/ssf.d.ts +31 -1
- package/dist/client/ssf.js +17 -0
- package/dist/client/ssf.js.map +1 -1
- package/dist/client/users.d.ts +9 -0
- package/dist/client/users.js +9 -0
- package/dist/client/users.js.map +1 -1
- package/dist/client/vault.d.ts +54 -0
- package/dist/client/vault.js +30 -0
- package/dist/client/vault.js.map +1 -1
- package/dist/client/vc.d.ts +62 -2
- package/dist/client/vc.js +15 -0
- package/dist/client/vc.js.map +1 -1
- package/dist/client/workflows.d.ts +182 -3
- package/dist/client/workflows.js +34 -0
- package/dist/client/workflows.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/oauth-resource.d.ts +30 -3
- package/dist/oauth-resource.js +43 -2
- package/dist/oauth-resource.js.map +1 -1
- package/dist/policy-bundle.d.ts +110 -0
- package/dist/policy-bundle.js +289 -0
- package/dist/policy-bundle.js.map +1 -0
- package/dist/txn-token.d.ts +36 -0
- package/dist/txn-token.js +30 -0
- package/dist/txn-token.js.map +1 -0
- package/dist/uma.d.ts +77 -0
- package/dist/uma.js +95 -0
- package/dist/uma.js.map +1 -0
- package/package.json +2 -2
package/dist/uma.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User-Managed Access 2.0 for a RESOURCE SERVER: register what your users own, ask Atlas for permission tickets,
|
|
3
|
+
* answer a request without a token with the UMA challenge, and read the permissions of a Requesting Party Token.
|
|
4
|
+
* Atlas is the authorization server; the protection API needs a Protection API Access Token (PAT), which this
|
|
5
|
+
* client fetches and refreshes with your confidential client's credentials (client_credentials, scope uma_protection).
|
|
6
|
+
*/
|
|
7
|
+
export declare const UMA_PROTECTION_SCOPE = "uma_protection";
|
|
8
|
+
export interface UmaResourceBody {
|
|
9
|
+
name: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
uri?: string;
|
|
12
|
+
icon_uri?: string;
|
|
13
|
+
/** The scopes a requesting party can be granted on this resource. */
|
|
14
|
+
resource_scopes?: string[];
|
|
15
|
+
/** The Atlas user id of the resource owner, who can then share it from the hosted account page. */
|
|
16
|
+
owner?: string;
|
|
17
|
+
/** A resource-scoped roles resource whose role assignments decide who holds each scope. */
|
|
18
|
+
rbac_resource_id?: string;
|
|
19
|
+
/** Let a requesting party with no access ask the owner (the grant answers request_submitted until they decide). */
|
|
20
|
+
owner_approval?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface UmaResource extends UmaResourceBody {
|
|
23
|
+
_id: string;
|
|
24
|
+
}
|
|
25
|
+
export interface UmaPermission {
|
|
26
|
+
resource_id: string;
|
|
27
|
+
resource_scopes: string[];
|
|
28
|
+
exp?: number;
|
|
29
|
+
iat?: number;
|
|
30
|
+
nbf?: number;
|
|
31
|
+
}
|
|
32
|
+
/** The RPT introspection answer (UMA Federated Authorization 5.1.1): no `scope`, with `permissions`. */
|
|
33
|
+
export interface UmaIntrospection {
|
|
34
|
+
active: boolean;
|
|
35
|
+
sub?: string;
|
|
36
|
+
exp?: number;
|
|
37
|
+
iat?: number;
|
|
38
|
+
client_id?: string;
|
|
39
|
+
permissions?: UmaPermission[];
|
|
40
|
+
}
|
|
41
|
+
export declare class UmaProtectionError extends Error {
|
|
42
|
+
readonly status: number;
|
|
43
|
+
readonly code: string;
|
|
44
|
+
constructor(status: number, code: string, message: string);
|
|
45
|
+
}
|
|
46
|
+
export interface UmaProtectionOptions {
|
|
47
|
+
/** Your Atlas sign-in origin, e.g. `https://auth.example.com`. */
|
|
48
|
+
issuer: string;
|
|
49
|
+
clientId: string;
|
|
50
|
+
clientSecret: string;
|
|
51
|
+
/** For tests or a proxy; defaults to the global fetch. */
|
|
52
|
+
fetch?: typeof fetch;
|
|
53
|
+
}
|
|
54
|
+
export declare function createUmaProtection(options: UmaProtectionOptions): {
|
|
55
|
+
/** A Protection API Access Token (cached until shortly before it expires). */
|
|
56
|
+
getPat: () => Promise<string>;
|
|
57
|
+
resources: {
|
|
58
|
+
create: (body: UmaResourceBody) => Promise<{
|
|
59
|
+
_id: string;
|
|
60
|
+
}>;
|
|
61
|
+
list: () => Promise<string[]>;
|
|
62
|
+
get: (id: string) => Promise<UmaResource>;
|
|
63
|
+
update: (id: string, body: UmaResourceBody) => Promise<UmaResource>;
|
|
64
|
+
remove: (id: string) => Promise<void>;
|
|
65
|
+
};
|
|
66
|
+
/** Ask for a permission ticket covering one or more resources and scopes. */
|
|
67
|
+
requestTicket(permissions: Array<{
|
|
68
|
+
resource_id: string;
|
|
69
|
+
resource_scopes?: string[];
|
|
70
|
+
}>): Promise<string>;
|
|
71
|
+
/** The `WWW-Authenticate` value for a 401 that hands the client a ticket. */
|
|
72
|
+
challenge(ticket: string, realm?: string): string;
|
|
73
|
+
/** Introspect a Requesting Party Token with the PAT. */
|
|
74
|
+
introspect(rpt: string): Promise<UmaIntrospection>;
|
|
75
|
+
};
|
|
76
|
+
/** Whether an introspected RPT grants `scope` on `resourceId` (and has not expired). */
|
|
77
|
+
export declare function umaAllows(introspection: UmaIntrospection, resourceId: string, scope: string, nowSeconds?: number): boolean;
|
package/dist/uma.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* User-Managed Access 2.0 for a RESOURCE SERVER: register what your users own, ask Atlas for permission tickets,
|
|
4
|
+
* answer a request without a token with the UMA challenge, and read the permissions of a Requesting Party Token.
|
|
5
|
+
* Atlas is the authorization server; the protection API needs a Protection API Access Token (PAT), which this
|
|
6
|
+
* client fetches and refreshes with your confidential client's credentials (client_credentials, scope uma_protection).
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.UmaProtectionError = exports.UMA_PROTECTION_SCOPE = void 0;
|
|
10
|
+
exports.createUmaProtection = createUmaProtection;
|
|
11
|
+
exports.umaAllows = umaAllows;
|
|
12
|
+
exports.UMA_PROTECTION_SCOPE = 'uma_protection';
|
|
13
|
+
class UmaProtectionError extends Error {
|
|
14
|
+
status;
|
|
15
|
+
code;
|
|
16
|
+
constructor(status, code, message) {
|
|
17
|
+
super(message);
|
|
18
|
+
this.status = status;
|
|
19
|
+
this.code = code;
|
|
20
|
+
this.name = 'UmaProtectionError';
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.UmaProtectionError = UmaProtectionError;
|
|
24
|
+
function createUmaProtection(options) {
|
|
25
|
+
const issuer = options.issuer.replace(/\/+$/, '');
|
|
26
|
+
const doFetch = options.fetch ?? fetch;
|
|
27
|
+
let pat;
|
|
28
|
+
const getPat = async () => {
|
|
29
|
+
if (pat && pat.expiresAt - 30_000 > Date.now())
|
|
30
|
+
return pat.token;
|
|
31
|
+
const res = await doFetch(`${issuer}/oauth2/token`, {
|
|
32
|
+
method: 'POST',
|
|
33
|
+
headers: { 'content-type': 'application/x-www-form-urlencoded', authorization: `Basic ${btoa(`${encodeURIComponent(options.clientId)}:${encodeURIComponent(options.clientSecret)}`)}` },
|
|
34
|
+
body: new URLSearchParams({ grant_type: 'client_credentials', scope: exports.UMA_PROTECTION_SCOPE }).toString(),
|
|
35
|
+
});
|
|
36
|
+
const body = (await res.json().catch(() => ({})));
|
|
37
|
+
if (!res.ok || !body.access_token)
|
|
38
|
+
throw new UmaProtectionError(res.status, body.error ?? 'invalid_client', body.error_description ?? 'Could not obtain a Protection API Access Token.');
|
|
39
|
+
pat = { token: body.access_token, expiresAt: Date.now() + (body.expires_in ?? 3600) * 1000 };
|
|
40
|
+
return pat.token;
|
|
41
|
+
};
|
|
42
|
+
const call = async (method, path, body) => {
|
|
43
|
+
const res = await doFetch(`${issuer}${path}`, {
|
|
44
|
+
method,
|
|
45
|
+
headers: { authorization: `Bearer ${await getPat()}`, ...(body === undefined ? {} : { 'content-type': 'application/json' }) },
|
|
46
|
+
body: body === undefined ? undefined : JSON.stringify(body),
|
|
47
|
+
});
|
|
48
|
+
if (res.status === 204)
|
|
49
|
+
return undefined;
|
|
50
|
+
const data = (await res.json().catch(() => ({})));
|
|
51
|
+
if (!res.ok) {
|
|
52
|
+
if (res.status === 401)
|
|
53
|
+
pat = undefined;
|
|
54
|
+
throw new UmaProtectionError(res.status, data.error ?? data.errors?.[0]?.code ?? 'error', data.message ?? data.errors?.[0]?.message ?? 'The protection API refused the request.');
|
|
55
|
+
}
|
|
56
|
+
return data;
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
/** A Protection API Access Token (cached until shortly before it expires). */
|
|
60
|
+
getPat,
|
|
61
|
+
resources: {
|
|
62
|
+
create: (body) => call('POST', '/oauth2/uma/resource_set', body),
|
|
63
|
+
list: () => call('GET', '/oauth2/uma/resource_set'),
|
|
64
|
+
get: (id) => call('GET', `/oauth2/uma/resource_set/${encodeURIComponent(id)}`),
|
|
65
|
+
update: (id, body) => call('PUT', `/oauth2/uma/resource_set/${encodeURIComponent(id)}`, body),
|
|
66
|
+
remove: (id) => call('DELETE', `/oauth2/uma/resource_set/${encodeURIComponent(id)}`),
|
|
67
|
+
},
|
|
68
|
+
/** Ask for a permission ticket covering one or more resources and scopes. */
|
|
69
|
+
async requestTicket(permissions) {
|
|
70
|
+
return (await call('POST', '/oauth2/uma/permission', permissions)).ticket;
|
|
71
|
+
},
|
|
72
|
+
/** The `WWW-Authenticate` value for a 401 that hands the client a ticket. */
|
|
73
|
+
challenge(ticket, realm = 'uma') {
|
|
74
|
+
return `UMA realm="${realm}", as_uri="${issuer}", ticket="${ticket}"`;
|
|
75
|
+
},
|
|
76
|
+
/** Introspect a Requesting Party Token with the PAT. */
|
|
77
|
+
async introspect(rpt) {
|
|
78
|
+
const res = await doFetch(`${issuer}/oauth2/introspect`, {
|
|
79
|
+
method: 'POST',
|
|
80
|
+
headers: { authorization: `Bearer ${await getPat()}`, 'content-type': 'application/x-www-form-urlencoded' },
|
|
81
|
+
body: new URLSearchParams({ token: rpt }).toString(),
|
|
82
|
+
});
|
|
83
|
+
if (!res.ok)
|
|
84
|
+
throw new UmaProtectionError(res.status, 'introspection_failed', 'Introspection was refused.');
|
|
85
|
+
return (await res.json());
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
/** Whether an introspected RPT grants `scope` on `resourceId` (and has not expired). */
|
|
90
|
+
function umaAllows(introspection, resourceId, scope, nowSeconds = Math.floor(Date.now() / 1000)) {
|
|
91
|
+
if (!introspection.active)
|
|
92
|
+
return false;
|
|
93
|
+
return (introspection.permissions ?? []).some((p) => p.resource_id === resourceId && p.resource_scopes.includes(scope) && (p.exp ?? introspection.exp ?? Infinity) > nowSeconds && (p.nbf ?? 0) <= nowSeconds);
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=uma.js.map
|
package/dist/uma.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uma.js","sourceRoot":"","sources":["../src/uma.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA6DH,kDA8DC;AAGD,8BAKC;AAjIY,QAAA,oBAAoB,GAAG,gBAAgB,CAAC;AAuCrD,MAAa,kBAAmB,SAAQ,KAAK;IAEhC;IACA;IAFX,YACW,MAAc,EACd,IAAY,EACrB,OAAe;QAEf,KAAK,CAAC,OAAO,CAAC,CAAC;QAJN,WAAM,GAAN,MAAM,CAAQ;QACd,SAAI,GAAJ,IAAI,CAAQ;QAIrB,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AATD,gDASC;AAWD,SAAgB,mBAAmB,CAAC,OAA6B;IAC/D,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAClD,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC;IACvC,IAAI,GAAqD,CAAC;IAE1D,MAAM,MAAM,GAAG,KAAK,IAAqB,EAAE;QACzC,IAAI,GAAG,IAAI,GAAG,CAAC,SAAS,GAAG,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE;YAAE,OAAO,GAAG,CAAC,KAAK,CAAC;QACjE,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,GAAG,MAAM,eAAe,EAAE;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,IAAI,CAAC;IACtI,IAAI,CAAC,aAAa,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IACxC,OAAO,CAAC,aAAa,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,CAC3C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,UAAU,IAAI,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,aAAa,CAAC,GAAG,IAAI,QAAQ,CAAC,GAAG,UAAU,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,UAAU,CAChK,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlasauth/backend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@noble/ciphers": "^1.3.0",
|
|
9
9
|
"@noble/hashes": "^1.8.0",
|
|
10
10
|
"@noble/curves": "^1.9.1",
|
|
11
|
-
"@atlasauth/authz": "0.
|
|
11
|
+
"@atlasauth/authz": "0.3.0",
|
|
12
12
|
"@atlasauth/pca": "0.1.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|