@toa.io/extensions.exposition 1.0.0-alpha.217 → 1.0.0-alpha.219
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/components/identity.bans/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.basic/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.federation/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.keys/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.otp/manifest.toa.yaml +16 -2
- package/components/identity.otp/operations/authenticate.js +1 -1
- package/components/identity.otp/operations/authenticate.js.map +1 -1
- package/components/identity.otp/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.otp/source/authenticate.ts +1 -1
- package/components/identity.passkeys/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.roles/operations/tsconfig.tsbuildinfo +1 -1
- package/components/identity.tokens/operations/tsconfig.tsbuildinfo +1 -1
- package/features/identity.otp.feature +30 -0
- package/features/steps/Captures.ts +12 -0
- package/features/steps/HTTP.ts +1 -0
- package/package.json +6 -6
- package/transpiled/tsconfig.tsbuildinfo +1 -1
- package/components/identity.federation/operations/lib/Context.d.ts +0 -7
- package/components/identity.federation/operations/lib/Context.js +0 -3
- package/components/identity.federation/operations/lib/Context.js.map +0 -1
|
@@ -10,7 +10,7 @@ entity:
|
|
|
10
10
|
type: object
|
|
11
11
|
properties: &properties
|
|
12
12
|
authority: { type: string }
|
|
13
|
-
username: { type: string }
|
|
13
|
+
username: { type: string, minLength: 1, maxLength: 256 }
|
|
14
14
|
identity: *id
|
|
15
15
|
required: [authority, username]
|
|
16
16
|
index:
|
|
@@ -25,9 +25,10 @@ operations:
|
|
|
25
25
|
<<: *properties
|
|
26
26
|
identity: *id
|
|
27
27
|
lifetime: &lifetime
|
|
28
|
+
description: OTP expiration time in seconds
|
|
28
29
|
type: number
|
|
29
30
|
minimum: 1
|
|
30
|
-
maximum:
|
|
31
|
+
maximum: 3600
|
|
31
32
|
required: [authority, username]
|
|
32
33
|
authenticate:
|
|
33
34
|
input:
|
|
@@ -49,7 +50,20 @@ configuration:
|
|
|
49
50
|
schema:
|
|
50
51
|
properties:
|
|
51
52
|
lifetime:
|
|
53
|
+
description: OTP expiration time in seconds
|
|
52
54
|
<<: *lifetime
|
|
53
55
|
default: 300
|
|
54
56
|
|
|
55
57
|
stash: ~
|
|
58
|
+
|
|
59
|
+
exposition:
|
|
60
|
+
/:identity:
|
|
61
|
+
auth:id: identity
|
|
62
|
+
auth:role: system:identity:otp
|
|
63
|
+
POST:
|
|
64
|
+
io:input: []
|
|
65
|
+
io:output: [code]
|
|
66
|
+
map:authority: authority
|
|
67
|
+
map:segments:
|
|
68
|
+
username: identity
|
|
69
|
+
endpoint: issue
|
|
@@ -21,7 +21,7 @@ async function effect(input, context) {
|
|
|
21
21
|
});
|
|
22
22
|
if (entry === null)
|
|
23
23
|
return ERR_NOT_FOUND;
|
|
24
|
-
const id = entry.identity ?? entry.id;
|
|
24
|
+
const id = entry.identity ?? entry.id; // identity inception
|
|
25
25
|
return { identity: { id } };
|
|
26
26
|
}
|
|
27
27
|
exports.effect = effect;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticate.js","sourceRoot":"","sources":["../source/authenticate.ts"],"names":[],"mappings":";;;AAAA,6CAAiC;AAG1B,KAAK,UAAU,MAAM,CAAE,KAAY,EAAE,OAAgB;IAC1D,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,KAAK,CAAA;IACxC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAEjF,IAAI,IAAI,KAAK,SAAS;QACpB,OAAO,uBAAuB,CAAA;IAEhC,MAAM,GAAG,GAAG,GAAG,SAAS,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAA;IAC9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