Function createSecurityPolicyMiddlewares
- createSecurityPolicyMiddlewares<DAOGenericsMap, OperationMetadataType, Permissions, SecurityDomain>(contextPolicy: EntityManagerSecurtyPolicy<DAOGenericsMap, OperationMetadataType, Permissions, SecurityDomain>): {
middlewares: { [ K in keyof DAOGenericsMap]?: DAOMiddleware<DAOGenericsMap[K]> };
others?: DAOMiddleware<DAOGenericsMap[keyof DAOGenericsMap]>;
}
-
Type Parameters
-
DAOGenericsMap extends {}
-
OperationMetadataType
-
Permissions extends string
-
SecurityDomain extends Record<string, unknown>
Returns {
middlewares: { [ K in keyof DAOGenericsMap]?: DAOMiddleware<DAOGenericsMap[K]> };
others?: DAOMiddleware<DAOGenericsMap[keyof DAOGenericsMap]>;
}
-
middlewares: { [ K in keyof DAOGenericsMap]?: DAOMiddleware<DAOGenericsMap[K]> }
-
Optional
others?: DAOMiddleware<DAOGenericsMap[keyof DAOGenericsMap]>