@owlmeans/auth 0.1.18-rc.9 → 0.1.19-rc.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/README.md +289 -45
- package/agent-meta/manifest.json +3 -3
- package/agent-meta/skills/auth/SKILL.md +29 -23
- package/agent-meta/skills/auth-protocol/SKILL.md +111 -91
- package/build/allowance/index.d.ts +1 -1
- package/build/allowance/index.d.ts.map +1 -1
- package/build/allowance/index.js +1 -1
- package/build/allowance/index.js.map +1 -1
- package/build/allowance/{model.d.ts → schemas.d.ts} +1 -1
- package/build/allowance/schemas.d.ts.map +1 -0
- package/build/allowance/{model.js → schemas.js} +5 -3
- package/build/allowance/schemas.js.map +1 -0
- package/build/auth/index.d.ts +1 -1
- package/build/auth/index.d.ts.map +1 -1
- package/build/auth/index.js +1 -1
- package/build/auth/index.js.map +1 -1
- package/build/auth/{model.d.ts → schemas.d.ts} +1 -1
- package/build/auth/schemas.d.ts.map +1 -0
- package/build/auth/{model.js → schemas.js} +2 -2
- package/build/auth/schemas.js.map +1 -0
- package/build/consts.d.ts +5 -0
- package/build/consts.d.ts.map +1 -1
- package/build/consts.js +5 -0
- package/build/consts.js.map +1 -1
- package/build/entity/index.d.ts +1 -1
- package/build/entity/index.js +1 -1
- package/build/entity/{profile.d.ts → schemas.d.ts} +1 -1
- package/build/entity/schemas.d.ts.map +1 -0
- package/build/entity/{profile.js → schemas.js} +2 -2
- package/build/entity/{profile.js.map → schemas.js.map} +1 -1
- package/build/errors.d.ts +15 -0
- package/build/errors.d.ts.map +1 -1
- package/build/errors.js +19 -0
- package/build/errors.js.map +1 -1
- package/build/helper/types.d.ts +22 -0
- package/build/helper/types.d.ts.map +1 -0
- package/build/helper/types.js +2 -0
- package/build/helper/types.js.map +1 -0
- package/build/helper.d.ts +7 -11
- package/build/helper.d.ts.map +1 -1
- package/build/helper.js +30 -27
- package/build/helper.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js.map +1 -1
- package/build/permission/index.d.ts +1 -1
- package/build/permission/index.d.ts.map +1 -1
- package/build/permission/index.js +1 -1
- package/build/permission/index.js.map +1 -1
- package/build/permission/{model.d.ts → schemas.d.ts} +1 -1
- package/build/permission/schemas.d.ts.map +1 -0
- package/build/permission/{model.js → schemas.js} +1 -1
- package/build/permission/schemas.js.map +1 -0
- package/build/rely/index.d.ts +1 -1
- package/build/rely/index.d.ts.map +1 -1
- package/build/rely/index.js +1 -1
- package/build/rely/index.js.map +1 -1
- package/build/rely/{model.d.ts → schemas.d.ts} +1 -1
- package/build/rely/schemas.d.ts.map +1 -0
- package/build/rely/{model.js → schemas.js} +1 -1
- package/build/rely/schemas.js.map +1 -0
- package/build/supervisor.d.ts +0 -8
- package/build/supervisor.d.ts.map +1 -1
- package/build/types.d.ts +12 -0
- package/build/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/allowance/index.ts +1 -1
- package/src/allowance/{model.ts → schemas.ts} +4 -2
- package/src/auth/index.ts +1 -1
- package/src/auth/{model.ts → schemas.ts} +1 -1
- package/src/consts.ts +6 -0
- package/src/entity/index.ts +1 -1
- package/src/entity/{profile.ts → schemas.ts} +1 -1
- package/src/errors.ts +22 -1
- package/src/helper/types.ts +22 -0
- package/src/helper.ts +44 -33
- package/src/index.ts +1 -0
- package/src/permission/index.ts +1 -1
- package/src/rely/index.ts +1 -1
- package/src/supervisor.ts +0 -8
- package/src/types.ts +13 -0
- package/tests/errors.spec.ts +19 -0
- package/build/allowance/model.d.ts.map +0 -1
- package/build/allowance/model.js.map +0 -1
- package/build/auth/model.d.ts.map +0 -1
- package/build/auth/model.js.map +0 -1
- package/build/entity/profile.d.ts.map +0 -1
- package/build/permission/model.d.ts.map +0 -1
- package/build/permission/model.js.map +0 -1
- package/build/rely/model.d.ts.map +0 -1
- package/build/rely/model.js.map +0 -1
- /package/src/permission/{model.ts → schemas.ts} +0 -0
- /package/src/rely/{model.ts → schemas.ts} +0 -0
package/src/helper.ts
CHANGED
|
@@ -1,44 +1,55 @@
|
|
|
1
1
|
import type { Auth, AuthCredentials, AuthToken, Authorization } from './types.js'
|
|
2
2
|
import { Ajv } from 'ajv'
|
|
3
3
|
import formatsPlugin from 'ajv-formats'
|
|
4
|
-
import { AuthCredentialsSchema, AuthSchema } from './allowance/
|
|
4
|
+
import { AuthCredentialsSchema, AuthSchema } from './allowance/schemas.js'
|
|
5
|
+
import type { AuthHelper } from './helper/types.js'
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
export const createAuthHelper = (): AuthHelper => {
|
|
8
|
+
const ajv = new Ajv({ strict: false })
|
|
9
|
+
// @TODO There is some serious type mismatch probably because of wrong versions resolution
|
|
10
|
+
formatsPlugin(ajv as any)
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
const verifyAuth = (auth: Auth): boolean => {
|
|
13
|
+
const validate = ajv.compile(AuthSchema)
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
+
return validate(auth)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const verifyAuthCredentials = (auth: AuthCredentials): boolean => {
|
|
19
|
+
const validate = ajv.compile(AuthCredentialsSchema)
|
|
20
|
+
|
|
21
|
+
return validate(auth)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const isAuth = (auth: unknown): auth is Auth =>
|
|
25
|
+
typeof auth === 'object' && auth != null
|
|
26
|
+
&& ("token" in auth) && ("isUser" in auth)
|
|
27
|
+
|
|
28
|
+
const isAuthCredentials = (auth: unknown): auth is AuthCredentials =>
|
|
29
|
+
typeof auth === 'object' && auth != null
|
|
30
|
+
&& ("challenge" in auth) && ("credential" in auth)
|
|
15
31
|
|
|
16
|
-
|
|
17
|
-
|
|
32
|
+
const isAuthToken = (auth: unknown): auth is AuthToken =>
|
|
33
|
+
typeof auth === 'object' && auth != null
|
|
34
|
+
&& ("token" in auth) && typeof auth.token === 'string'
|
|
18
35
|
|
|
19
|
-
|
|
36
|
+
const entitySlugOf = (payload?: Partial<Authorization> | null): string | undefined =>
|
|
37
|
+
payload?.entitySlug ?? (payload as { entityId?: string } | null | undefined)?.entityId
|
|
38
|
+
|
|
39
|
+
return { verifyAuth, verifyAuthCredentials, isAuth, isAuthCredentials, isAuthToken, entitySlugOf }
|
|
20
40
|
}
|
|
21
41
|
|
|
22
|
-
export const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* The organization slug carried by an auth payload, tolerating tokens minted before the field
|
|
36
|
-
* was named.
|
|
37
|
-
*
|
|
38
|
-
* Tokens outlive deployments: one signed with the previous release still arrives with the value
|
|
39
|
-
* under `entityId`, and it stays valid until it expires. Everything that reads the organization
|
|
40
|
-
* off a payload goes through here so that window needs no second code path — and so the day the
|
|
41
|
-
* fallback can be deleted is a single-line change rather than an audit.
|
|
42
|
-
*/
|
|
42
|
+
export const authHelper = createAuthHelper()
|
|
43
|
+
|
|
44
|
+
/** @deprecated compat:factory-refactor — use `authHelper.isAuth(…)` */
|
|
45
|
+
export const isAuth = (auth: unknown): auth is Auth => authHelper.isAuth(auth)
|
|
46
|
+
|
|
47
|
+
/** @deprecated compat:factory-refactor — use `authHelper.isAuthCredentials(…)` */
|
|
48
|
+
export const isAuthCredentials = (auth: unknown): auth is AuthCredentials => authHelper.isAuthCredentials(auth)
|
|
49
|
+
|
|
50
|
+
/** @deprecated compat:factory-refactor — use `authHelper.isAuthToken(…)` */
|
|
51
|
+
export const isAuthToken = (auth: unknown): auth is AuthToken => authHelper.isAuthToken(auth)
|
|
52
|
+
|
|
53
|
+
/** @deprecated compat:factory-refactor — use `authHelper.entitySlugOf(…)` */
|
|
43
54
|
export const entitySlugOf = (payload?: Partial<Authorization> | null): string | undefined =>
|
|
44
|
-
|
|
55
|
+
authHelper.entitySlugOf(payload)
|
package/src/index.ts
CHANGED
package/src/permission/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './schemas.js'
|
package/src/rely/index.ts
CHANGED
package/src/supervisor.ts
CHANGED
|
@@ -14,11 +14,3 @@ export const buildSupervisorPayload = (
|
|
|
14
14
|
challenge: string, userId: string, salt: string
|
|
15
15
|
): { challenge: string, userId: string, salt: string } => ({ challenge, userId, salt })
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Shape of the value packed into `AuthCredentials.credential` by the supervisor
|
|
19
|
-
* web plugin: the client `salt` plus the `signature` over `buildSupervisorPayload`.
|
|
20
|
-
*/
|
|
21
|
-
export interface SupervisorCredentialPayload {
|
|
22
|
-
salt: string
|
|
23
|
-
signature: string
|
|
24
|
-
}
|
package/src/types.ts
CHANGED
|
@@ -121,6 +121,10 @@ export interface Auth extends AuthPayload {
|
|
|
121
121
|
token: string
|
|
122
122
|
isUser: boolean
|
|
123
123
|
createdAt: Date
|
|
124
|
+
/** Opaque session registry key; it is not an organization identifier. */
|
|
125
|
+
sessionId?: string
|
|
126
|
+
/** Monotonic authorization revision supplied by the session registry. */
|
|
127
|
+
authorizationVersion?: number
|
|
124
128
|
/**
|
|
125
129
|
AuthPayload:
|
|
126
130
|
type: string
|
|
@@ -186,3 +190,12 @@ export interface AllowanceResponse {
|
|
|
186
190
|
export interface AuthToken {
|
|
187
191
|
token: string
|
|
188
192
|
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Shape of the value packed into `AuthCredentials.credential` by the supervisor
|
|
196
|
+
* web plugin: the client `salt` plus the `signature` over `buildSupervisorPayload`.
|
|
197
|
+
*/
|
|
198
|
+
export interface SupervisorCredentialPayload {
|
|
199
|
+
salt: string
|
|
200
|
+
signature: string
|
|
201
|
+
}
|
package/tests/errors.spec.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
AuthorizationError,
|
|
6
6
|
AuthenFailed,
|
|
7
7
|
AuthenPayloadError,
|
|
8
|
+
AuthUnknown,
|
|
8
9
|
} from '@owlmeans/auth'
|
|
9
10
|
|
|
10
11
|
describe('@owlmeans/auth — error inheritance chain', () => {
|
|
@@ -49,3 +50,21 @@ describe('@owlmeans/auth — error inheritance chain', () => {
|
|
|
49
50
|
expect(thrown).toHaveLength(3)
|
|
50
51
|
})
|
|
51
52
|
})
|
|
53
|
+
|
|
54
|
+
describe('@owlmeans/auth — declared HTTP statuses', () => {
|
|
55
|
+
// An unknown method, provider or identity is the caller's request — never a crashed server (500).
|
|
56
|
+
test('AuthUnknown declares 400 and stays outside the authorization family', () => {
|
|
57
|
+
const err = new AuthUnknown('email-otp')
|
|
58
|
+
expect(AuthUnknown.httpStatus).toBe(400)
|
|
59
|
+
expect((err.constructor as { httpStatus?: unknown }).httpStatus).toBe(400)
|
|
60
|
+
expect(err).toBeInstanceOf(AuthError)
|
|
61
|
+
expect(err).not.toBeInstanceOf(AuthorizationError)
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
// Their 401/403 comes from the family mapping in `@owlmeans/server-api`, never from a declaration.
|
|
65
|
+
test('the authorization family declares no status of its own', () => {
|
|
66
|
+
for (const refusal of [AuthorizationError, AuthForbidden]) {
|
|
67
|
+
expect([refusal.typeName, (refusal as { httpStatus?: unknown }).httpStatus]).toEqual([refusal.typeName, undefined])
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/allowance/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAQvF,eAAO,MAAM,wBAAwB,EAAE,cAAc,CA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mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAI1C,eAAO,MAAM,aAAa,EAAE,cAAc,CAAC,OAAO,CAiBjD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/permission/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGtE,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,WAAW,CAIzD,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,aAAa,CAU7D,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,YAAY,CAQ3D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/permission/model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAE1F,MAAM,CAAC,MAAM,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,EAAE,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;IACrE,QAAQ,EAAE,EAAE;CACb,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAkC;IAChE,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE;QACvE,KAAK,EAAE,gBAAgB;QACvB,WAAW,EAAE,iBAAiB;QAC9B,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE;KACzE;IACD,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC;IAClC,oBAAoB,EAAE,KAAK;CAC5B,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAiC;IAC9D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,oBAAoB,EAAE;KAC3D;IACD,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;IACjC,oBAAoB,EAAE,KAAK;CAC5B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/rely/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,SAAS,CAUzD,CAAA"}
|
package/build/rely/model.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/rely/model.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,mBAAmB,GAA8B;IAC5D,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;QACpE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;QACtE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE;QACrE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;KACvD;IACD,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,oBAAoB,EAAE,KAAK;CAC5B,CAAA"}
|
|
File without changes
|
|
File without changes
|