This page provides the list of events and associated payload for internal events (via RabbitMQ/AWS MQ) and external events (via EventBridge) for the Authorization microservice.

External Events via EventBridge

The following events contain the entity changed in the event message payload.

List of Events

S.No.API callCall detailEvent TypeIdentifier
1.POST AddUsersToAuthGroup  authservice/authgroup/addusers  response_responseCode
2.POST CreateAuthGroup  authservice/authgroup/create  response_group.authGroupId
3.DELETE DeleteAuthGroup  authservice/authgroup/delete  request_groupId
4.DELETE RemoveUsersFromAuthGroup  authservice/authgroup/removeusers  request_userIds
5.PUT UpdateAuthGroup  authservice/authgroup/update  response_group.authGroupId
6.POST CreateDynamicPrivilege  authservice/dynamicprivilege/create  response_privileges.dynamicPrivilegeId
7.DELETE DeleteDynamicPrivilege  authservice/dynamicprivilege/delete  request_dynamicPrivilegeId
8.PUT UpdateDynamicPrivilege  authservice/dynamicprivilege/update  response_privileges.dynamicPrivilegeId
9.POST CreateGroupAttribute  authservice/groupattribute/create  response_groupAttribute.groupAttributeId
10.DELETE DeleteGroupAttribute  authservice/groupattribute/delete  request_groupAttribute.groupAttributeId
11.PUT UpdateGroupAttribute  authservice/groupattribute/update  response_groupAttribute.groupAttributeId
12.POST CreateOAuthClient  authservice/oauthclient/create  response_client.clientId
13.DELETE DeleteOAuthClient  authservice/oauthclient/delete  request_clientId
14.POST OAuthClientAuthorization  authservice/oauthclient/authorization  request_sessionId
15.PATCH UpdateOAuthClient  authservice/oauthclient/patch  response_client.clientId
16.POST CreatePrivilege  authservice/privilege/create  response_privilege.privilegeId
17.DELETE DeletePrivilege  authservice/privilege/delete  request_id
18.PUT UpdatePrivilege  authservice/privilege/update  response_privilege.privilegeId
19.POST AddPrivilegesToPrivilegeSet  authservice/privilegeset/addprivileges  request_privilegeSetId
20.POST CreatePrivilegeSet  authservice/privilegeset/create  response_privilegeSet.privilegeSetId
21.DELETE DeletePrivilegeSet  authservice/privilegeset/delete  request_id
22.DELETE RemovePrivilegesFromPrivilegeSet  authservice/privilegeset/removeprivileges  request_privilegeSetId
23.PUT UpdatePrivilegeSet  authservice/privilegeset/update  response_privilegeSet.privilegeSetId
24.POST CreateRole  authservice/role/create  response_role.id
25.PATCH ModifyRole  authservice/role/patch  response_role.id
26.PUT UpdateRole  authservice/role/update  response_role.id
27.POST CreateSession  authservice/session/create  response_session.sessionId
28.DELETE DeleteSession  authservice/session/delete  request_sessionId
29.PATCH RefreshSession  authservice/session/patch  response_session.sessionId
30.POST CreateUserAttribute  authservice/userattribute/create  response_userAttribute.id
31.DELETE DeleteUserAttribute  authservice/userattribute/delete  request_userAttribute.id
32.PUT UpdateUserAttribute  authservice/userattribute/update  response_userAttribute.id
33.POST AddRolesToUsers  authservice/userrole/create  request_userRoles.userId
34.DELETE DeleteUserRoles  authservice/userrole/delete  request_userId
35.PUT UpdateAllUserRoles  authservice/userrole/update  request_userId

Payload

AddUsersToAuthGroup

Event Type: authservice/authgroup/addusers


{
  "version": "0",
  "id": "a365656e-52ef-26ac-a385-a13453d0d978",
  "detail-type": "authservice/authgroup/addusers",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:12:21Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "AUTH_SUCCESS",
    "timestamp": 1715235141324,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/authgroup/addusers",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateAuthGroup

Event Type: authservice/authgroup/create


{
  "version": "0",
  "id": "3bd24735-fbef-fa45-46fa-1d3e0e43f863",
  "detail-type": "authservice/authgroup/create",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:10:12Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "770",
    "timestamp": 1715235012248,
    "payload": {
      "responseCode": "AUTH_SESSION_CREATED",
      "group": {
        "collectionId": 5942,
        "id": 770,
        "createdBy": 1,
        "createdTimestamp": 1715235012247,
        "updatedBy": 1,
        "updatedTimestamp": 1715235012247,
        "name": "string",
        "description": "string"
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/authgroup/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteAuthGroup

Event Type: authservice/authgroup/delete


{
  "version": "0",
  "id": "260c349a-f9b3-02c1-eb3a-299859e39547",
  "detail-type": "authservice/authgroup/delete",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:10:27Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "771",
    "timestamp": 1715235027444,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/authgroup/delete",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

RemoveUsersFromAuthGroup

Event Type: authservice/authgroup/removeusers


{
  "version": "0",
  "id": "2112a958-b710-2ce2-4ce1-91d6fda4f1a0",
  "detail-type": "authservice/authgroup/removeusers",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:12:24Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "[68]",
    "timestamp": 1715235144810,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/authgroup/removeusers",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateAuthGroup

Event Type: authservice/authgroup/update


{
  "version": "0",
  "id": "e314861d-dadd-79e2-8e71-97b1197dffaa",
  "detail-type": "authservice/authgroup/update",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:10:19Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "770",
    "timestamp": 1715235019886,
    "payload": {
      "responseCode": "AUTH_SUCCESS",
      "group": {
        "collectionId": 5942,
        "id": 770,
        "createdBy": 1,
        "createdTimestamp": 1715235012000,
        "updatedBy": 1,
        "updatedTimestamp": 1715235012000,
        "name": "string",
        "description": "description_1715235019867"
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/authgroup/update",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateDynamicPrivilege

Event Type: authservice/dynamicprivilege/create


{
  "version": "0",
  "id": "a98938e1-fc34-f051-3ae6-a8d9fb45a7dd",
  "detail-type": "authservice/dynamicprivilege/create",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:17Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "753",
    "timestamp": 1715235077268,
    "payload": {
      "responseCode": "AUTH_SESSION_CREATED",
      "privileges": {
        "service": "PIM",
        "level": 2,
        "privilegeSetId": 880,
        "id": 753,
        "createdBy": 1,
        "createdTimestamp": 1715235077266,
        "updatedBy": 1,
        "updatedTimestamp": 1715235077266
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/dynamicprivilege/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteDynamicPrivilege

Event Type: authservice/dynamicprivilege/delete


{
  "version": "0",
  "id": "59ac5faa-68a1-6d5f-ba1c-d378ea09c5c4",
  "detail-type": "authservice/dynamicprivilege/delete",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:24Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "754",
    "timestamp": 1715235084249,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/dynamicprivilege/delete",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateDynamicPrivilege

Event Type: authservice/dynamicprivilege/update


{
  "version": "0",
  "id": "d019ff57-e16f-10db-7ad1-210eafaed8b5",
  "detail-type": "authservice/dynamicprivilege/update",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:20Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "753",
    "timestamp": 1715235080739,
    "payload": {
      "responseCode": "AUTH_SUCCESS",
      "privileges": {
        "service": "CART",
        "level": 3,
        "privilegeSetId": 880,
        "id": 753,
        "createdBy": 1,
        "createdTimestamp": 1715235077000,
        "updatedBy": 1,
        "updatedTimestamp": 1715235077000
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/dynamicprivilege/update",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateGroupAttribute

Event Type: authservice/groupattribute/create


{
  "version": "0",
  "id": "720ae059-732b-362b-57ba-28e9daedbbc2",
  "detail-type": "authservice/groupattribute/create",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:38Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "370",
    "timestamp": 1715235098464,
    "payload": {
      "responseCode": "AUTH_SESSION_CREATED",
      "groupAttribute": {
        "authGroupId": 770,
        "privilegeId": 1241,
        "attribueValue": "test",
        "id": 370,
        "createdBy": 1,
        "createdTimestamp": 1715235098463,
        "updatedBy": 1,
        "updatedTimestamp": 1715235098463
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/groupattribute/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteGroupAttribute

Event Type: authservice/groupattribute/delete


{
  "version": "0",
  "id": "20268727-012e-c8eb-dcf9-48b03ac916c3",
  "detail-type": "authservice/groupattribute/delete",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:45Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1715235105484,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/groupattribute/delete",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateGroupAttribute

Event Type: authservice/groupattribute/update


{
  "version": "0",
  "id": "f623ad2b-07c5-1705-eae7-83fa0d89d9f3",
  "detail-type": "authservice/groupattribute/update",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:41Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "370",
    "timestamp": 1715235101924,
    "payload": {
      "responseCode": "AUTH_SUCCESS",
      "groupAttribute": {
        "authGroupId": 770,
        "privilegeId": 1241,
        "attribueValue": "testupdate",
        "id": 370,
        "createdBy": 1,
        "createdTimestamp": 1715235098000,
        "updatedBy": 1,
        "updatedTimestamp": 1715235098000
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/groupattribute/update",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateOAuthClient

Event Type: authservice/oauthclient/create


{
  "version": "0",
  "id": "4bb4ae08-0339-84a3-d942-fec9a3794296",
  "detail-type": "authservice/oauthclient/create",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:27Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "9cf1be2aad38551",
    "timestamp": 1715235087879,
    "payload": {
      "client": {
        "clientId": "9cf1be2aad38551",
        "clientName": "9cffba11-b1e0-497a-9251-995da0f205df5/7/2005 11:29:37 PM",
        "logoUri": "https://www.skava.com",
        "clientSecretExpiresAt": 1809843087868,
        "contactEmail": "xander.harrison@hotmail.net",
        "redirectUris": "https://www.skava.com",
        "idTokenSignedResponseAlg": "RS512",
        "jwksUri": "https://eq-uat-api.eqcmrc.com/authservices/openidclients/jwks/9cf1be2aad38551",
        "applicationType": "native",
        "collectionId": 5942
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/oauthclient/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteOAuthClient

Event Type: authservice/oauthclient/delete


{
  "version": "0",
  "id": "30ebe629-70dd-43ba-d491-bf37dd6fbd79",
  "detail-type": "authservice/oauthclient/delete",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:35Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "3007e36d6bef00a",
    "timestamp": 1715235095005,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/oauthclient/delete",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

OAuthClientAuthorization

Event Type: authservice/oauthclient/authorization


{
  "version": "0",
  "id": "4b2f1a5a-5cf3-522f-92b6-5ff45ec42bb8",
  "detail-type": "authservice/oauthclient/authorization",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:12:28Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "d77515daa3da5a0208d05265e4e0abfb93c83d7fb367a3bb2cc7db3f6bda382540e8e133b32c2b28d9498fa619352de07f7448b3c998f00dd5376d9c8ff95bd7",
    "timestamp": 1715235148719,
    "payload": {
      "idToken": "eyJraWQiOiJyc2Etc2lnLTY1NThiZWI2MmZkZCIsImFsZyI6IlJTNTEyIn0.eyJzdWIiOiJkNzc1MTVkYWEzZGE1YTAyMDhkMDUyNjVlNGUwYWJmYjkzYzgzZDdmYjM2N2EzYmIyY2M3ZGIzZjZiZGEzODI1NDBlOGUxMzNiMzJjMmIyOGQ5NDk4ZmE2MTkzNTJkZTA3Zjc0NDhiM2M5OThmMDBkZDUzNzZkOWM4ZmY5NWJkNyIsIm5hbWUiOiJTa2F2YSBVc2VyIiwibm9uY2UiOiJhZmZmIiwiZW1haWwiOiJkZXZAc2thdmEuY29tIiwiYXV0aG9yaXRpZXMiOiJbe1wicm9sZXNcIjp7XCJST0xFX1NVUEVSX0FETUlOXCI6e1wiYnVzaW5lc3NcIjp7XCIwXCI6e319LFwidHlwZVwiOlwiU1RBTkRBUkRcIn19fV0iLCJhdWQiOiIzMTJlZWVlOTE4M2M0MGEiLCJpc3MiOiJodHRwczovL3d3dy5za2F2YWNvbW1lcmNlLmNvbSIsImlhdCI6MTcxNTIzNTE0OCwiZXhwIjoxNzE1MjM4NzQ4fQ.E_v5u6qZRtVxCcHj_W0tAKcJfhxkRAa4U2cYKq17zF4UVCDkrB8hT7MI0zBVL0IwdaxOWpFt47J_rhDhNRhrPRag8srsAeyute3zb5pMI5ZF_Gma4hFUzZcN4kYpNtME8vereAtPeMXH5Gr2iuE4XQnRT8NP6XhUofb1xNKAzg6EouKrTabgTQrC5yFAuIwD7gOiMF6iNe32txbOiY9KQfcbdlumo-WeIJS7_6W4Aes_PRCCzRsRzTpDbN185CPcTrrCkw9tVa-WA8nuGdXqc3Q1mBuLVpgFbGUdRZPSltj2-I4VCZDosA-LeuT8cAsaz9TbgiROuhuFBStGgE8EtQ",
      "state": "sds",
      "redirectUri": "https://www.skava.com"
    },
    "collectionId": "5942",
    "eventType": "authservice/oauthclient/authorization",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateOAuthClient

Event Type: authservice/oauthclient/patch


{
  "version": "0",
  "id": "42c002f5-28ed-a1ac-6283-94461fcfbdaa",
  "detail-type": "authservice/oauthclient/patch",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:31Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "9cf1be2aad38551",
    "timestamp": 1715235091442,
    "payload": {
      "client": {
        "clientId": "9cf1be2aad38551",
        "clientName": "9cffba11-b1e0-497a-9251-995da0f205df5/7/2005 11:29:37 PM",
        "logoUri": "https://www.skava.com",
        "clientSecretExpiresAt": 1809843088000,
        "contactEmail": "xander.harrison@hotmail.net",
        "redirectUris": "https://www.skava.com",
        "idTokenSignedResponseAlg": "RS512",
        "jwksUri": "https://eq-uat-api.eqcmrc.com/authservices/openidclients/jwks/9cf1be2aad38551",
        "applicationType": "native",
        "collectionId": 5942
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/oauthclient/patch",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreatePrivilege

Event Type: authservice/privilege/create



DeletePrivilege

Event Type: authservice/privilege/delete


{
  "version": "0",
  "id": "6bf5c34d-0bdf-8470-ccbb-ff8bc9029637",
  "detail-type": "authservice/privilege/create",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:10:48Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1241",
    "timestamp": 1715235048732,
    "payload": {
      "responseCode": "AUTH_SESSION_CREATED",
      "responseMessage": "Resource Created",
      "privilege": {
        "entity": "8760658c-942e-43eb-aabf-d83163cca367",
        "description": "ColumbusHeard Island and Mcdonald Islands",
        "service": "Amaya",
        "action": "/Delaware",
        "level": 1,
        "conditionFlag": false,
        "id": 1241,
        "createdBy": 1,
        "createdTimestamp": 1715235048730,
        "updatedBy": 1,
        "updatedTimestamp": 1715235048730
      }
    },
    "eventType": "authservice/privilege/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdatePrivilege

Event Type: authservice/privilege/update


{
  "version": "0",
  "id": "8eb539d6-8016-a3f3-cc30-f494bd7e0739",
  "detail-type": "authservice/privilege/update",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:10:52Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "1241",
    "timestamp": 1715235052262,
    "payload": {
      "responseCode": "AUTH_SUCCESS",
      "privilege": {
        "entity": "zOcePb",
        "description": "yTsVijvyTaOTAeIBCTm",
        "service": "qFjmvp",
        "action": "RIRscooxDJ",
        "level": 1,
        "conditionFlag": false,
        "id": 1241,
        "createdBy": 1,
        "createdTimestamp": 1715235049000,
        "updatedBy": 1,
        "updatedTimestamp": 1715235049000
      }
    },
    "eventType": "authservice/privilege/update",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

AddPrivilegesToPrivilegeSet

Event Type: authservice/privilegeset/addprivileges


{
  "version": "0",
  "id": "b11bd5a3-7ce1-8881-50db-5167566207c1",
  "detail-type": "authservice/privilegeset/addprivileges",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:10Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "880",
    "timestamp": 1715235070092,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/privilegeset/addprivileges",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreatePrivilegeSet

Event Type: authservice/privilegeset/create


{
  "version": "0",
  "id": "25902edb-810b-e272-b130-705702f2348f",
  "detail-type": "authservice/privilegeset/create",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:10:59Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "880",
    "timestamp": 1715235059512,
    "payload": {
      "responseCode": "AUTH_SESSION_CREATED",
      "privilegeSet": {
        "collectionId": 5942,
        "id": 880,
        "createdBy": 1,
        "createdTimestamp": 1715235059511,
        "updatedBy": 1,
        "updatedTimestamp": 1715235059511,
        "name": "76cd590e-7947-4f97-a1ae-4ea46d712b2e",
        "description": "190.177.184.89conan.kirkland@mail.us"
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/privilegeset/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeletePrivilegeSet

Event Type: authservice/privilegeset/delete


{
  "version": "0",
  "id": "51f401ae-ec64-8d8e-d7d1-36ad4ba2ab56",
  "detail-type": "authservice/privilegeset/delete",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:06Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "881",
    "timestamp": 1715235066654,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/privilegeset/delete",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

RemovePrivilegesFromPrivilegeSet

Event Type: authservice/privilegeset/removeprivileges


{
  "version": "0",
  "id": "da0078e2-e4d7-de40-a11d-763d9df7c6e5",
  "detail-type": "authservice/privilegeset/removeprivileges",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:13Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "880",
    "timestamp": 1715235073832,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/privilegeset/removeprivileges",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdatePrivilegeSet

Event Type: authservice/privilegeset/update


{
  "version": "0",
  "id": "bbf73397-b694-f9f8-9e89-0b73a497f761",
  "detail-type": "authservice/privilegeset/update",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:03Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "880",
    "timestamp": 1715235063135,
    "payload": {
      "responseCode": "AUTH_SUCCESS",
      "privilegeSet": {
        "collectionId": 5942,
        "id": 880,
        "createdBy": 1,
        "createdTimestamp": 1715235060000,
        "updatedBy": 1,
        "updatedTimestamp": 1715235060000,
        "name": "jgAQXfxq",
        "description": "dvzvXmJsmJOeIvvGBCtospfqCIntr"
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/privilegeset/update",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateRole

Event Type: authservice/role/create


{
  "version": "0",
  "id": "d69058b3-7b37-0dcf-4785-a23e3b8a6eea",
  "detail-type": "authservice/role/create",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:10:30Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "575",
    "timestamp": 1715235030964,
    "payload": {
      "responseCode": "AUTH_ENTITY_CREATION_SUCESS",
      "role": {
        "id": 575,
        "createdBy": 1,
        "createdTimestamp": 1715235030962,
        "updatedBy": 1,
        "updatedTimestamp": 1715235030962,
        "name": "8Utah50",
        "description": "73Kalispell57",
        "collectionId": 5942,
        "businessId": 0,
        "type": "CUSTOM"
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/role/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

ModifyRole

Event Type: authservice/role/patch


{
  "version": "0",
  "id": "9164db66-b266-0010-5b2d-8b6c17690d2f",
  "detail-type": "authservice/role/patch",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:10:37Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "575",
    "timestamp": 1715235037949,
    "payload": {
      "responseCode": "AUTH_SUCCESS",
      "role": {
        "id": 575,
        "createdBy": 1,
        "createdTimestamp": 1715235031000,
        "updatedBy": 1,
        "updatedTimestamp": 1715235034000,
        "name": "beVYRRFL",
        "description": "J9Fl3D0eHLhbrRvQqL",
        "collectionId": 5942,
        "businessId": 0,
        "type": "CUSTOM"
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/role/patch",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateRole

Event Type: authservice/role/update


{
  "version": "0",
  "id": "3027dacd-1661-2572-4e3b-ffc64ee595ec",
  "detail-type": "authservice/role/update",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:10:34Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "575",
    "timestamp": 1715235034443,
    "payload": {
      "responseCode": "AUTH_SUCCESS",
      "role": {
        "id": 575,
        "createdBy": 1,
        "createdTimestamp": 1715235031000,
        "updatedBy": 1,
        "updatedTimestamp": 1715235031000,
        "name": "49Bangladesh46",
        "description": "J9Fl3D0eHLhbrRvQqL",
        "collectionId": 5942,
        "businessId": 0,
        "type": "CUSTOM"
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/role/update",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateSession

Event Type: authservice/session/create


{
  "version": "0",
  "id": "d7da8e1c-db0c-3cfa-fd14-74cd2ad8a7c8",
  "detail-type": "authservice/session/create",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:48Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "d77515daa3da5a0208d05265e4e0abfb93c83d7fb367a3bb2cc7db3f6bda382540e8e133b32c2b28d9498fa619352de07f7448b3c998f00dd5376d9c8ff95bd7",
    "timestamp": 1715235108974,
    "payload": {
      "responseCode": "AUTH_SESSION_CREATED",
      "session": {
        "sessionId": "d77515daa3da5a0208d05265e4e0abfb93c83d7fb367a3bb2cc7db3f6bda382540e8e133b32c2b28d9498fa619352de07f7448b3c998f00dd5376d9c8ff95bd7",
        "authToken": "eyJiaWQiOjAsImFsZyI6IkhTNTEyIn0.eyJjcmVhdGVkIjoxNzE1MjM1MTA4OTY0LCJhY3Rpbmd1c2VybmFtZSI6IjEiLCJoYXNoIjoiZDc3NTE1ZGFhM2RhNWEwMjA4ZDA1MjY1ZTRlMGFiZmI5M2M4M2Q3ZmIzNjdhM2JiMmNjN2RiM2Y2YmRhMzgyNTQwZThlMTMzYjMyYzJiMjhkOTQ5OGZhNjE5MzUyZGUwN2Y3NDQ4YjNjOTk4ZjAwZGQ1Mzc2ZDljOGZmOTViZDciLCJhdXRob3JpdGllcyI6Ilt7XCJyb2xlc1wiOntcIlJPTEVfU1VQRVJfQURNSU5cIjp7XCJidXNpbmVzc1wiOntcIjBcIjp7fX0sXCJ0eXBlXCI6XCJTVEFOREFSRFwifX19XSIsInVzZXJuYW1lIjoiMSIsImV4cCI6MTcxNTMyMTUwOH0.G5OV4wn_93_UdDPHUl0ZmegXrRs_LlegqUDh-nWTtUOJO_-dppLm8wiUBj4TeRUJAMAZv0VibRl1eBKSF3u05g",
        "refreshToken": "b386dc0d0fb7ca3d201d329af7501d070c8dab1a4159abc587d935d2570f341aa097a8cf2a109b44cb2d5a5f7c6c6d18",
        "userid": "1",
        "businessId": 0
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/session/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteSession

Event Type: authservice/session/delete


{
  "version": "0",
  "id": "3ea61a7f-2fda-328b-ce4a-da5c4b627c19",
  "detail-type": "authservice/session/delete",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:55Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "708fc18a8da766da965f462cc4c42499fe3d120be5773d45ae0d3e7010f4c21a4eef08bfb031524eff69c3bb7fb7e5991fc5657a1e05f5c9025ec7c83260a0ff",
    "timestamp": 1715235115600,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "eventType": "authservice/session/delete",
    "actOnBehalfOfUser": 0,
    "roles": [
      
    ],
    "channel": "CSR"
  }
}

RefreshSession

Event Type: authservice/session/patch


{
  "version": "0",
  "id": "664601c2-7aee-8700-ffaf-8883753863ed",
  "detail-type": "authservice/session/patch",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:52Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "d77515daa3da5a0208d05265e4e0abfb93c83d7fb367a3bb2cc7db3f6bda382540e8e133b32c2b28d9498fa619352de07f7448b3c998f00dd5376d9c8ff95bd7",
    "timestamp": 1715235112155,
    "payload": {
      "responseCode": "AUTH_SUCCESS",
      "session": {
        "sessionId": "d77515daa3da5a0208d05265e4e0abfb93c83d7fb367a3bb2cc7db3f6bda382540e8e133b32c2b28d9498fa619352de07f7448b3c998f00dd5376d9c8ff95bd7",
        "authToken": "eyJiaWQiOjAsImFsZyI6IkhTNTEyIn0.eyJjcmVhdGVkIjoxNzE1MjM1MTEyMTU0LCJhY3Rpbmd1c2VybmFtZSI6IjEiLCJoYXNoIjoiZDc3NTE1ZGFhM2RhNWEwMjA4ZDA1MjY1ZTRlMGFiZmI5M2M4M2Q3ZmIzNjdhM2JiMmNjN2RiM2Y2YmRhMzgyNTQwZThlMTMzYjMyYzJiMjhkOTQ5OGZhNjE5MzUyZGUwN2Y3NDQ4YjNjOTk4ZjAwZGQ1Mzc2ZDljOGZmOTViZDciLCJhdXRob3JpdGllcyI6Ilt7XCJyb2xlc1wiOntcIlJPTEVfU1VQRVJfQURNSU5cIjp7XCJidXNpbmVzc1wiOntcIjBcIjp7fX0sXCJ0eXBlXCI6XCJTVEFOREFSRFwifX19XSIsInVzZXJuYW1lIjoiMSIsImV4cCI6MTcxNTMyMTUxMn0.cj1u3KS8ilE8BlFib4q0jL8Etq-N9T8YRNM-8r0baIMG8ncnXATtaeHHuPo-m3DIF-O8CnstACswNpHyBwPg8g",
        "refreshToken": "b386dc0d0fb7ca3d201d329af7501d07728d19220144acdceed66ce2ba12b506a1f3463a7814b225c721f6ce253ae5d0",
        "userid": "1",
        "businessId": 0
      }
    },
    "eventType": "authservice/session/patch",
    "actOnBehalfOfUser": 0,
    "roles": [
      
    ],
    "channel": "CSR"
  }
}

CreateUserAttribute

Event Type: authservice/userattribute/create


{
  "version": "0",
  "id": "816f1dd2-624f-4afc-1b25-2fed93f029f8",
  "detail-type": "authservice/userattribute/create",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:12:09Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "105",
    "timestamp": 1715235129953,
    "payload": {
      "responseCode": "AUTH_SESSION_CREATED",
      "userAttribute": {
        "id": 105,
        "createdBy": 1,
        "createdTimestamp": 1715235129952,
        "updatedBy": 1,
        "updatedTimestamp": 1715235129952,
        "userId": 77,
        "privilegeId": 1241,
        "attribueValue": "MyanmarKai Anderson"
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/userattribute/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteUserAttribute

Event Type: authservice/userattribute/delete


{
  "version": "0",
  "id": "a234155f-aae8-e6e8-894a-7aeffd53b650",
  "detail-type": "authservice/userattribute/delete",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:12:17Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1715235137599,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/userattribute/delete",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateUserAttribute

Event Type: authservice/userattribute/update


{
  "version": "0",
  "id": "f2bf8ca7-5542-f6c3-b9d3-3194e3fc07c7",
  "detail-type": "authservice/userattribute/update",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:12:14Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "105",
    "timestamp": 1715235134042,
    "payload": {
      "responseCode": "AUTH_SUCCESS",
      "userAttribute": {
        "id": 105,
        "createdBy": 1,
        "createdTimestamp": 1715235130000,
        "updatedBy": 1,
        "updatedTimestamp": 1715235130000,
        "userId": 3,
        "privilegeId": 1241,
        "attribueValue": "Turks and Caicos IslandsMelanie Garrison"
      }
    },
    "collectionId": "5942",
    "eventType": "authservice/userattribute/update",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

AddRolesToUsers

Event Type: authservice/userrole/create


{
  "version": "0",
  "id": "6ee52eb9-d038-fb31-9a55-454f7de1931e",
  "detail-type": "authservice/userrole/create",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:11:59Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1715235119074,
    "payload": {
      "responseCode": "AUTH_ROLES_ADDED"
    },
    "collectionId": "5942",
    "eventType": "authservice/userrole/create",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteUserRoles

Event Type: authservice/userrole/delete


{
  "version": "0",
  "id": "ed6ec62b-0e7c-f099-7a5c-8073b4d19cf8",
  "detail-type": "authservice/userrole/delete",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:12:06Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "170",
    "timestamp": 1715235126484,
    "payload": {
      "responseCode": "AUTH_SUCCESS"
    },
    "collectionId": "5942",
    "eventType": "authservice/userrole/delete",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateAllUserRoles

Event Type: authservice/userrole/update


{
  "version": "0",
  "id": "b1198a8c-425b-23a0-bce0-1199e502c5fb",
  "detail-type": "authservice/userrole/update",
  "source": "authservice",
  "account": "277827593990",
  "time": "2024-05-09T06:12:02Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "205",
    "timestamp": 1715235122979,
    "payload": {
      "responseCode": "AUTH_ROLES_ADDED"
    },
    "collectionId": "5942",
    "eventType": "authservice/userrole/update",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

Internal Events via RabbitMQ/AWS MQ

The following events communicate with the internal microservices.

List of Events

SL.#NAMEDESCRIPTIONPUBLISH LOCATIONROUTING KEYDURABILITYPAYLOAD TYPE
1User Role EventThis event is triggered when the role(s) are assigned to a user, the role(s) are updated for a user, and/or the role(s) are deleted from a user.ecomm - exchangeauth.userrole.#trueUserRoleEvent

Payload Model

Below is the payload for the Authorization microservice.

UserRoleEvent

PropertyTypeDescriptionExample
added.userIdlongIndicates the unique ID of the user for whom the role is assigned.10
added.roles.idlongIndicates the unique ID of the role.100
added.roles.userIdlongIndicates the unique ID of the user for whom the role is assigned.10
added.roles.roleNamestringIndicates the name of the role to be added.ROLE_SEARCH_ADMIN
added.roles.servicestringIndicates the name of the service in which the role is applicable. One of the collection ID of this service will be listed under the property added.roles.serviceCollectionId.search
added.roles.businessIdlongIndicates the unique ID of the business.20
added.roles.collectionIdlongIndicates the unique ID of the collection. The Authorization service will contain this collection ID.1
added.roles.serviceCollectionIdlongHolds the unique ID of the collection of the service for which the role is applicable. This service collection ID will be created under the property added.roles.service.25
added.roles.attributeJSONIndicates the attribute(s) of the service. It is used to give role-specific attributes to the user.{"\CatalogId":100, "\Category":"shirts"}
added.roles.storeIdlongIndicates the unique ID of the store.5
removed.userIdlongIndicates the unique ID of the user for whom the role is removed.10
removed.roles.idlongIndicates the unique ID of the role.100
removed.roles.userIdlongIndicates the unique ID of the user for whom the role is removed.10
removed.roles.roleNamestringIndicates the name of the role to be removed.ROLE_PROMOTION_ADMIN
removed.roles.servicestringIndicates the name of the service in which the role is applicable. One of the collection ID of this service will be listed under the property removed.roles.serviceCollectionId.promotion
removed.roles.businessIdlongIndicates the unique ID of the business.20
removed.roles.collectionIdlongIndicates the unique ID of the collection. The Authorization service should contain this collection ID.1
removed.roles.serviceCollectionIdlongHolds the unique ID of the collection of the service for which the role is applicable. This service collection ID should be created under the property removed.roles.service.28
removed.roles.attributeJSONIndicates the attribute(s) of the service. It is used to give role-specific attributes to the user.{"\PromotionId":100}
removed.roles.storeIdlongIndicates the unique ID of the store.5
updated.userIdlongIndicates the unique ID of the user for whom the role is updated.10
updated.roles.idlongIndicates the unique ID of the role.100
updated.roles.userIdlongIndicates the unique ID of the user for whom the role is updated.10
updated.roles.roleNamestringIndicates the name of the role to be updated.ROLE_PRICING_ADMIN
updated.roles.servicestringIndicates the name of the service in which the role is applicable. One of the collection ID of this service will be listed under the property updated.roles.serviceCollectionId.pricing
updated.roles.businessIdlongIndicates the unique ID of the business.20
updated.roles.collectionIdlongIndicates the unique ID of the collection. The Authorization service should contain this collection ID.1
updated.roles.serviceCollectionIdlongHolds the unique ID of the collection of the service for which the role is applicable. This service collection ID should be created under the property updated.roles.service.25
updated.roles.attributeJSONIndicates the attribute(s) of the service. It is used to give role-specific attributes to the user.{"\CatalogId":100, "\PriceId":200}
updated.roles.storeIdlongIndicates the unique ID of the store.5




Revision History
2019-07-09 | Ananthi – Content updated for July 2019 release.
2019-01-21 | PLK – Page added.