@fabrika/auth 0.9.0-dev.10 → 0.9.0-dev.12
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/package.json +4 -4
- package/src/membership.ts +4 -1
- package/types/src/membership.d.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabrika/auth",
|
|
3
|
-
"version": "0.9.0-dev.
|
|
3
|
+
"version": "0.9.0-dev.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
|
-
"typecheck": "
|
|
26
|
+
"typecheck": "tsrs --build tsconfig.test.json",
|
|
27
27
|
"test": "bun test"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"zod": "^3.25.76",
|
|
31
|
-
"@fabrika/auth-core": "0.9.0-dev.
|
|
32
|
-
"@fabrika/jwks": "0.9.0-dev.
|
|
31
|
+
"@fabrika/auth-core": "0.9.0-dev.12",
|
|
32
|
+
"@fabrika/jwks": "0.9.0-dev.12",
|
|
33
33
|
"jose": "^5.9.0"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/membership.ts
CHANGED
|
@@ -43,7 +43,10 @@ export class IamMembership {
|
|
|
43
43
|
private readonly appId: string,
|
|
44
44
|
) {}
|
|
45
45
|
|
|
46
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* A single-use grant for one request to `endpoint`. IAM refuses it on every application transport (ADR-0022 rule 6):
|
|
48
|
+
* only the proxy obtains one, and the application spends the grant the proxy forwards.
|
|
49
|
+
*/
|
|
47
50
|
requestDelegation(caller: MembershipRequestCaller, endpoint: string): Promise<RequestDelegationResult> {
|
|
48
51
|
return this.binding.requestDelegation({ ...this.caller(caller), endpoint })
|
|
49
52
|
}
|
|
@@ -23,7 +23,10 @@ export declare class IamMembership {
|
|
|
23
23
|
private readonly binding;
|
|
24
24
|
private readonly appId;
|
|
25
25
|
constructor(binding: IamMembershipRpc, appId: string);
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* A single-use grant for one request to `endpoint`. IAM refuses it on every application transport (ADR-0022 rule 6):
|
|
28
|
+
* only the proxy obtains one, and the application spends the grant the proxy forwards.
|
|
29
|
+
*/
|
|
27
30
|
requestDelegation(caller: MembershipRequestCaller, endpoint: string): Promise<RequestDelegationResult>;
|
|
28
31
|
/** A new value of `dimension`, with the caller granted the dimension's creator role in it. */
|
|
29
32
|
createScope(caller: MembershipRequestCaller, delegation: string, dimension: string): Promise<CreateScopeResult>;
|