feat: finished crud endpoints

This commit is contained in:
Sheen Capadngan
2024-12-10 23:10:44 +08:00
parent 84c26581a6
commit c8ee06341a
7 changed files with 650 additions and 60 deletions
@@ -14,13 +14,13 @@ export async function up(knex: Knex): Promise<void> {
t.uuid("identityId").notNullable().unique();
t.foreign("identityId").references("id").inTable(TableName.Identity).onDelete("CASCADE");
t.string("configurationType").notNullable();
t.string("jwksUrl");
t.binary("encryptedJwksCaCert");
t.binary("encryptedPublicKeys");
t.string("boundIssuer");
t.string("boundAudiences");
t.jsonb("boundClaims");
t.string("boundSubject");
t.string("jwksUrl").notNullable();
t.binary("encryptedJwksCaCert").notNullable();
t.binary("encryptedPublicKeys").notNullable();
t.string("boundIssuer").notNullable();
t.string("boundAudiences").notNullable();
t.jsonb("boundClaims").notNullable();
t.string("boundSubject").notNullable();
t.timestamps(true, true, true);
});
+7 -7
View File
@@ -17,13 +17,13 @@ export const IdentityJwtAuthsSchema = z.object({
accessTokenTrustedIps: z.unknown(),
identityId: z.string().uuid(),
configurationType: z.string(),
jwksUrl: z.string().nullable().optional(),
encryptedJwksCaCert: zodBuffer.nullable().optional(),
encryptedPublicKeys: zodBuffer.nullable().optional(),
boundIssuer: z.string().nullable().optional(),
boundAudiences: z.string().nullable().optional(),
boundClaims: z.unknown().nullable().optional(),
boundSubject: z.string().nullable().optional(),
jwksUrl: z.string(),
encryptedJwksCaCert: zodBuffer,
encryptedPublicKeys: zodBuffer,
boundIssuer: z.string(),
boundAudiences: z.string(),
boundClaims: z.unknown(),
boundSubject: z.string(),
createdAt: z.date(),
updatedAt: z.date()
});