gatherAttributes: createAuthEndpoint(
"/abac/gatherAttributes",
{
method: "POST",
body: z.object({
subjectId: z.string(),
resourceId: z.string().optional(),
resourceType: z.string().optional(),
actionName: z.string(),
context: z.record(z.any()), // This is equivalent to Record<string, any>
}),
},
async (ctx) => {
const attributeMap = new Map<string, AttributeValue>();
const subjectAttrs = await ctx.context.db
.selectFrom("")
}
),
gatherAttributes: createAuthEndpoint(
"/abac/gatherAttributes",
{
method: "POST",
body: z.object({
subjectId: z.string(),
resourceId: z.string().optional(),
resourceType: z.string().optional(),
actionName: z.string(),
context: z.record(z.any()), // This is equivalent to Record<string, any>
}),
},
async (ctx) => {
const attributeMap = new Map<string, AttributeValue>();
const subjectAttrs = await ctx.context.db
.selectFrom("")
}
),