@substrat-run/dev-issuer 0.7.0 → 0.8.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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/people.d.ts +84 -0
- package/dist/people.d.ts.map +1 -0
- package/dist/people.js +54 -0
- package/dist/people.js.map +1 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ export { DEV_ALG, DEV_KID, DEV_PUBLIC_JWK } from './keys.js';
|
|
|
4
4
|
export { devLogin, DEV_ISSUER_DEFAULT, type DevCaller, type DevDirectory, type DevLogin, type DevLoginOptions, } from './harness.js';
|
|
5
5
|
export type { AuthSubject } from '@substrat-run/vertical-auth/provider';
|
|
6
6
|
export { devMemberInvites, type DevAdmission, type DevInviteHost, type DevMemberInvites, type DevMemberInvitesOptions, type DevSqliteDatabase, } from './member-invites.js';
|
|
7
|
+
export { devPeople, type DevPeople, type DevPeopleHost, type DevPeopleOptions } from './people.js';
|
|
8
|
+
export { PEOPLE_TTL_SECONDS, type PersonRefusal } from '@substrat-run/vertical-auth/people';
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpF,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,eAAe,GACrB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EACL,gBAAgB,EAChB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,GACvB,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpF,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,eAAe,GACrB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EACL,gBAAgB,EAChB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,oCAAoC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,4 +2,6 @@ export { createDevIssuer, DEV_CLIENT_ID } from './issuer.js';
|
|
|
2
2
|
export { DEV_ALG, DEV_KID, DEV_PUBLIC_JWK } from './keys.js';
|
|
3
3
|
export { devLogin, DEV_ISSUER_DEFAULT, } from './harness.js';
|
|
4
4
|
export { devMemberInvites, } from './member-invites.js';
|
|
5
|
+
export { devPeople } from './people.js';
|
|
6
|
+
export { PEOPLE_TTL_SECONDS } from '@substrat-run/vertical-auth/people';
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAyB,MAAM,aAAa,CAAC;AAEpF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EACL,QAAQ,EACR,kBAAkB,GAKnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,gBAAgB,GAMjB,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAyB,MAAM,aAAa,CAAC;AAEpF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EACL,QAAQ,EACR,kBAAkB,GAKnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,gBAAgB,GAMjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAA6D,MAAM,aAAa,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAsB,MAAM,oCAAoC,CAAC"}
|
package/dist/people.d.ts
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* People owned by another app, for a DEPENDENT vertical's local dev server: the person
|
|
3
|
+
* contract's door (`@substrat-run/vertical-auth/people`) over the pieces a dev server has.
|
|
4
|
+
*
|
|
5
|
+
* A dependent vertical, a plugin of another app, has no cast of its own and no invitations.
|
|
6
|
+
* Whoever signs in is asked about at the app that owns the people, and let in as the person it
|
|
7
|
+
* names. Hosted, that question is a peer call and the answer is kept in the tenant's identity
|
|
8
|
+
* directory. Here the dev server passes the call in (the local broker's, usually), and the
|
|
9
|
+
* answers are kept in a SQLite file of its own, as `devMemberInvites` keeps its invites.
|
|
10
|
+
*
|
|
11
|
+
* It replaces `devLogin`'s `caller` for such a vertical rather than extending it: that one asks
|
|
12
|
+
* the pool which tenant a login lives in, and a dependent's login lives wherever the other app
|
|
13
|
+
* says. The dev server serves ONE scope of the dependent, and names it.
|
|
14
|
+
*/
|
|
15
|
+
import type { PersonResolveInput, PlatformActorId, PrincipalId, ScopeId, TenantId } from '@substrat-run/contracts';
|
|
16
|
+
import { type PersonRefusal } from '@substrat-run/vertical-auth/people';
|
|
17
|
+
import type { DevCaller, DevLogin } from './harness.js';
|
|
18
|
+
import type { DevSqliteDatabase } from './member-invites.js';
|
|
19
|
+
/** What it needs of the dev server's host: the pool link and the two role verbs. */
|
|
20
|
+
export interface DevPeopleHost {
|
|
21
|
+
admin: {
|
|
22
|
+
linkIdentity(actor: PlatformActorId, input: {
|
|
23
|
+
provider: string;
|
|
24
|
+
externalId: string;
|
|
25
|
+
principal: PrincipalId;
|
|
26
|
+
tenantId: TenantId;
|
|
27
|
+
scopeId?: ScopeId;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
assignRole(actor: PlatformActorId, assignment: {
|
|
30
|
+
principalId: PrincipalId;
|
|
31
|
+
roleKey: string;
|
|
32
|
+
node: {
|
|
33
|
+
tenantId: TenantId;
|
|
34
|
+
scopeId: ScopeId | null;
|
|
35
|
+
};
|
|
36
|
+
}): Promise<void>;
|
|
37
|
+
unassignRole(actor: PlatformActorId, assignment: {
|
|
38
|
+
principalId: PrincipalId;
|
|
39
|
+
roleKey: string;
|
|
40
|
+
node: {
|
|
41
|
+
tenantId: TenantId;
|
|
42
|
+
scopeId: ScopeId | null;
|
|
43
|
+
};
|
|
44
|
+
}): Promise<void>;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface DevPeopleOptions {
|
|
48
|
+
/** `devLogin(…)`: the relying party. Only its verified subject is read. */
|
|
49
|
+
login: Pick<DevLogin, 'subject' | 'issuer'>;
|
|
50
|
+
/** A SQLite database of the dev server's own: `new Database(join(dataDir, 'people.sqlite'))`. */
|
|
51
|
+
db: DevSqliteDatabase;
|
|
52
|
+
/** Usually the `SqliteScopeHost` the dev server runs on. */
|
|
53
|
+
host: DevPeopleHost;
|
|
54
|
+
/** The local platform actor the pool and role writes are stamped with. */
|
|
55
|
+
actor: PlatformActorId;
|
|
56
|
+
/** The identity pool the logins belong to (e.g. `oidc:dev-issuer`). */
|
|
57
|
+
provider: string;
|
|
58
|
+
/** The one scope of this vertical the dev server serves. */
|
|
59
|
+
node: {
|
|
60
|
+
tenantId: TenantId;
|
|
61
|
+
scopeId: ScopeId;
|
|
62
|
+
};
|
|
63
|
+
/** The other app's resolve operation: `(login) => peer.invoke('todo', 'todo/resolve-person', login)`. */
|
|
64
|
+
resolve: (login: PersonResolveInput) => Promise<unknown>;
|
|
65
|
+
/** The other app's role keys mapped onto this vertical's own. */
|
|
66
|
+
roles: (masterRoles: readonly string[]) => readonly string[];
|
|
67
|
+
/** How long an answer is kept. Defaults to the door's own. */
|
|
68
|
+
ttlSeconds?: number;
|
|
69
|
+
/** The door's clock. A test hands one in to move time; a dev server leaves it out. */
|
|
70
|
+
now?: () => Date;
|
|
71
|
+
}
|
|
72
|
+
export interface DevPeople {
|
|
73
|
+
/**
|
|
74
|
+
* The caller behind this request: null when nobody is signed in, the refusal when the other
|
|
75
|
+
* app does not let this login in (or did not answer), the caller otherwise.
|
|
76
|
+
*/
|
|
77
|
+
caller(headers: Headers): Promise<{
|
|
78
|
+
caller: DevCaller;
|
|
79
|
+
} | {
|
|
80
|
+
refused: PersonRefusal;
|
|
81
|
+
} | null>;
|
|
82
|
+
}
|
|
83
|
+
export declare function devPeople(opts: DevPeopleOptions): DevPeople;
|
|
84
|
+
//# sourceMappingURL=people.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{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ACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,2EAA2E;IAC3E,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,QAAQ,CAAC,CAAC;IAC5C,iGAAiG;IACjG,EAAE,EAAE,iBAAiB,CAAC;IACtB,4DAA4D;IAC5D,IAAI,EAAE,aAAa,CAAC;IACpB,0EAA0E;IAC1E,KAAK,EAAE,eAAe,CAAC;IACvB,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,IAAI,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAC/C,yGAAyG;IACzG,OAAO,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACzD,iEAAiE;IACjE,KAAK,EAAE,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,KAAK,SAAS,MAAM,EAAE,CAAC;IAC7D,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sFAAsF;IACtF,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,SAAS,CAAA;KAAE,GAAG;QAAE,OAAO,EAAE,aAAa,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;CAC9F;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,gBAAgB,GAAG,SAAS,CAmD3D"}
|
package/dist/people.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { verifiedEmailOf } from '@substrat-run/vertical-auth/oidc-rp-provider';
|
|
2
|
+
import { PEOPLE_DDL, admitPerson, sqlPeopleStore } from '@substrat-run/vertical-auth/people';
|
|
3
|
+
export function devPeople(opts) {
|
|
4
|
+
for (const stmt of PEOPLE_DDL)
|
|
5
|
+
opts.db.exec(stmt);
|
|
6
|
+
const store = sqlPeopleStore({
|
|
7
|
+
exec(query, ...params) {
|
|
8
|
+
const stmt = opts.db.prepare(query);
|
|
9
|
+
if (stmt.reader)
|
|
10
|
+
return stmt.all(...params);
|
|
11
|
+
stmt.run(...params);
|
|
12
|
+
return [];
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
const { tenantId, scopeId } = opts.node;
|
|
16
|
+
return {
|
|
17
|
+
async caller(headers) {
|
|
18
|
+
const subject = await opts.login.subject(headers);
|
|
19
|
+
if (!subject)
|
|
20
|
+
return null;
|
|
21
|
+
const verifiedEmail = verifiedEmailOf(subject);
|
|
22
|
+
const answer = await admitPerson({
|
|
23
|
+
resolve: opts.resolve,
|
|
24
|
+
store,
|
|
25
|
+
roles: opts.roles,
|
|
26
|
+
bind: (sub, principal) => opts.host.admin.linkIdentity(opts.actor, { provider: opts.provider, externalId: sub, principal, tenantId, scopeId }),
|
|
27
|
+
seat: async (principalId, { add, remove }) => {
|
|
28
|
+
const node = { tenantId, scopeId };
|
|
29
|
+
for (const roleKey of remove)
|
|
30
|
+
await opts.host.admin.unassignRole(opts.actor, { principalId, roleKey, node });
|
|
31
|
+
for (const roleKey of add)
|
|
32
|
+
await opts.host.admin.assignRole(opts.actor, { principalId, roleKey, node });
|
|
33
|
+
},
|
|
34
|
+
now: opts.now ?? (() => new Date()),
|
|
35
|
+
...(opts.ttlSeconds === undefined ? {} : { ttlSeconds: opts.ttlSeconds }),
|
|
36
|
+
onUnavailable: (error) => console.warn(`dev-issuer: the app that owns the people did not answer: ${error instanceof Error ? error.message : String(error)}`),
|
|
37
|
+
}, scopeId, { issuer: opts.login.issuer, sub: subject.sub, verifiedEmail });
|
|
38
|
+
if (!answer.admitted)
|
|
39
|
+
return { refused: answer.reason };
|
|
40
|
+
return {
|
|
41
|
+
caller: {
|
|
42
|
+
principal: answer.principal,
|
|
43
|
+
tenantId,
|
|
44
|
+
scopeId,
|
|
45
|
+
sub: subject.sub,
|
|
46
|
+
display: subject.name ?? subject.email ?? subject.sub,
|
|
47
|
+
email: subject.email,
|
|
48
|
+
verifiedEmail,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=people.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"people.js","sourceRoot":"","sources":["../src/people.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAsB,MAAM,oCAAoC,CAAC;AAqDjH,MAAM,UAAU,SAAS,CAAC,IAAsB;IAC9C,KAAK,MAAM,IAAI,IAAI,UAAU;QAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,KAAK,GAAG,cAAc,CAAC;QAC3B,IAAI,CAAC,KAAK,EAAE,GAAG,MAAM;YACnB,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YACpC,IAAI,IAAI,CAAC,MAAM;gBAAE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAA8B,CAAC;YACzE,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;YACpB,OAAO,EAAE,CAAC;QACZ,CAAC;KACF,CAAC,CAAC;IACH,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;IAExC,OAAO;QACL,KAAK,CAAC,MAAM,CAAC,OAAO;YAClB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAClD,IAAI,CAAC,OAAO;gBAAE,OAAO,IAAI,CAAC;YAC1B,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;YAC/C,MAAM,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K,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;aACrI,EACD,OAAO,EACP,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,aAAa,EAAE,CAC/D,CAAC;YACF,IAAI,CAAC,MAAM,CAAC,QAAQ;gBAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;YACxD,OAAO;gBACL,MAAM,EAAE;oBACN,SAAS,EAAE,MAAM,CAAC,SAAS;oBAC3B,QAAQ;oBACR,OAAO;oBACP,GAAG,EAAE,OAAO,CAAC,GAAG;oBAChB,OAAO,EAAE,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG;oBACrD,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,aAAa;iBACd;aACF,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrat-run/dev-issuer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "A local OpenID Connect provider whose only shortcut is that you pick a user instead of typing a password. Dev only — never deployed, never a dependency of a vertical's runtime.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@hono/node-server": "^1.13.0",
|
|
28
28
|
"jose": "^6.2.3",
|
|
29
|
-
"@substrat-run/
|
|
30
|
-
"@substrat-run/
|
|
29
|
+
"@substrat-run/vertical-auth": "^0.35.0",
|
|
30
|
+
"@substrat-run/contracts": "^0.196.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"hono": "^4.13.13"
|