@zuplo/runtime 5.2497.0 → 5.2498.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/out/esm/index.js +10 -10
- package/out/types/index.d.ts +30 -10
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -178,6 +178,13 @@ declare interface APITokenCredentialConfig {
|
|
|
178
178
|
export declare class AsertoAuthZInboundPolicy extends InboundPolicy<AsertoAuthZInboundPolicyOptions> {
|
|
179
179
|
private cache;
|
|
180
180
|
private authorizationUrl;
|
|
181
|
+
private serviceName;
|
|
182
|
+
/**
|
|
183
|
+
* Set the authorization context for the current request.
|
|
184
|
+
*
|
|
185
|
+
* @param context - The ZuploContext for the current request
|
|
186
|
+
* @param asertoContext - The Aserto context to send to the Aserto service
|
|
187
|
+
*/
|
|
181
188
|
static setAuthorizationContext(context: ZuploContext, asertoContext: Partial<AsertoContext>): void;
|
|
182
189
|
constructor(options: AsertoAuthZInboundPolicyOptions, policyName: string);
|
|
183
190
|
/**
|
|
@@ -210,24 +217,24 @@ export declare interface AsertoAuthZInboundPolicyOptions {
|
|
|
210
217
|
* The Aserto Authorizer API URL.
|
|
211
218
|
*/
|
|
212
219
|
authorizerApiUrl?: string;
|
|
220
|
+
policyInstance?: PolicyInstance;
|
|
213
221
|
/**
|
|
214
|
-
*
|
|
215
|
-
*/
|
|
216
|
-
authorizerPolicyName?: string;
|
|
217
|
-
/**
|
|
218
|
-
* Canonicalized service name (required unless all the overrides below are provided).
|
|
222
|
+
* Canonicalized service name.
|
|
219
223
|
*/
|
|
220
224
|
serviceName?: string;
|
|
221
225
|
}
|
|
222
226
|
|
|
227
|
+
/**
|
|
228
|
+
* The Aserto context that is passed to the Aserto service.
|
|
229
|
+
*/
|
|
223
230
|
declare interface AsertoContext {
|
|
224
|
-
|
|
231
|
+
identityContext: {
|
|
225
232
|
identity: string;
|
|
226
233
|
type: "IDENTITY_TYPE_SUB" | "IDENTITY_TYPE_NONE" | "IDENTITY_TYPE_JWT";
|
|
227
234
|
};
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
235
|
+
policyContext: PolicyContext;
|
|
236
|
+
policyInstance: PolicyInstance;
|
|
237
|
+
resourceContext: ResourceContext;
|
|
231
238
|
}
|
|
232
239
|
|
|
233
240
|
/**
|
|
@@ -3937,14 +3944,27 @@ export declare interface PolicyConfiguration {
|
|
|
3937
3944
|
options?: unknown;
|
|
3938
3945
|
}
|
|
3939
3946
|
|
|
3947
|
+
/**
|
|
3948
|
+
* The policy context that is passed to the Aserto service.
|
|
3949
|
+
*/
|
|
3940
3950
|
declare interface PolicyContext {
|
|
3941
3951
|
decisions: string[];
|
|
3942
3952
|
path: string;
|
|
3943
3953
|
}
|
|
3944
3954
|
|
|
3955
|
+
/**
|
|
3956
|
+
* This parameter identifies the policy instance created in the Aserto Console.
|
|
3957
|
+
* @see {@link https://docs.aserto.com/docs/authorizer-guide/policy-instance|Policy Instance}.
|
|
3958
|
+
*/
|
|
3945
3959
|
declare interface PolicyInstance {
|
|
3960
|
+
/**
|
|
3961
|
+
* The policy instance name.
|
|
3962
|
+
*/
|
|
3946
3963
|
name: string;
|
|
3947
|
-
|
|
3964
|
+
/**
|
|
3965
|
+
* the specific instance.
|
|
3966
|
+
*/
|
|
3967
|
+
instanceLabel: string;
|
|
3948
3968
|
}
|
|
3949
3969
|
|
|
3950
3970
|
declare type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|