Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions backend/src/server/routes/v1/identity-alicloud-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ export const registerIdentityAliCloudAuthRouter = async (server: FastifyZodProvi

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identityAliCloudAuth.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_ALICLOUD_AUTH,
Expand Down
7 changes: 7 additions & 0 deletions backend/src/server/routes/v1/identity-aws-iam-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ export const registerIdentityAwsAuthRouter = async (server: FastifyZodProvider)

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identityAwsAuth.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_AWS_AUTH,
Expand Down
7 changes: 7 additions & 0 deletions backend/src/server/routes/v1/identity-azure-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ export const registerIdentityAzureAuthRouter = async (server: FastifyZodProvider

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identityAzureAuth.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_AZURE_AUTH,
Expand Down
7 changes: 7 additions & 0 deletions backend/src/server/routes/v1/identity-gcp-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ export const registerIdentityGcpAuthRouter = async (server: FastifyZodProvider)

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identityGcpAuth.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_GCP_AUTH,
Expand Down
7 changes: 7 additions & 0 deletions backend/src/server/routes/v1/identity-jwt-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ export const registerIdentityJwtAuthRouter = async (server: FastifyZodProvider)

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identityJwtAuth.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_JWT_AUTH,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identityKubernetesAuth.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_KUBERNETES_AUTH,
Expand Down
7 changes: 7 additions & 0 deletions backend/src/server/routes/v1/identity-ldap-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ export const registerIdentityLdapAuthRouter = async (server: FastifyZodProvider)

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: authIdentityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_LDAP_AUTH,
Expand Down
7 changes: 7 additions & 0 deletions backend/src/server/routes/v1/identity-oci-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ export const registerIdentityOciAuthRouter = async (server: FastifyZodProvider)

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identityOciAuth.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_OCI_AUTH,
Expand Down
7 changes: 7 additions & 0 deletions backend/src/server/routes/v1/identity-oidc-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ export const registerIdentityOidcAuthRouter = async (server: FastifyZodProvider)

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identityOidcAuth.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_OIDC_AUTH,
Expand Down
7 changes: 7 additions & 0 deletions backend/src/server/routes/v1/identity-spiffe-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ export const registerIdentitySpiffeAuthRouter = async (server: FastifyZodProvide

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identitySpiffeAuth.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_SPIFFE_AUTH,
Expand Down
7 changes: 7 additions & 0 deletions backend/src/server/routes/v1/identity-tls-cert-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ export const registerIdentityTlsCertAuthRouter = async (server: FastifyZodProvid

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identityTlsCertAuth.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_TLS_CERT_AUTH,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ export const registerIdentityUaRouter = async (server: FastifyZodProvider) => {

await server.services.auditLog.createAuditLog({
...req.auditLogInfo,
actor: {
type: ActorType.IDENTITY,
metadata: {
identityId: identityUa.identityId,
name: identity.name
}
},
orgId: identity.orgId,
event: {
type: EventType.LOGIN_IDENTITY_UNIVERSAL_AUTH,
Expand Down
Loading