Skip to content

Commit

Permalink
[CLOUDTRUST-4847] Change scope for social auth to global (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
basbeu authored May 2, 2023
1 parent fd505d6 commit dae7be6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions security/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,17 @@ var (
EVGetUserEvents = Actions.addAction(BridgeService, EventsAPI, "EV_GetUserEvents", ScopeGroup)

KYCGetActions = Actions.addAction(BridgeService, KycAPI, "KYC_GetActions", ScopeGlobal)
KYCGetRealmUserProfileInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_GetRealmUserProfileInSocialRealm", ScopeRealm)
KYCGetRealmUserProfileInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_GetRealmUserProfileInSocialRealm", ScopeGlobal)
KYCGetRealmUserProfile = Actions.addAction(BridgeService, KycAPI, "KYC_GetRealmUserProfile", ScopeRealm)
KYCGetUserInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_GetUserInSocialRealm", ScopeRealm)
KYCGetUserInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_GetUserInSocialRealm", ScopeGlobal)
KYCGetUser = Actions.addAction(BridgeService, KycAPI, "KYC_GetUser", ScopeGroup)
KYCGetUserByUsernameInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_GetUserByUsernameInSocialRealm", ScopeRealm)
KYCGetUserByUsernameInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_GetUserByUsernameInSocialRealm", ScopeGlobal)
KYCGetUserByUsername = Actions.addAction(BridgeService, KycAPI, "KYC_GetUserByUsername", ScopeGroup)
KYCValidateUserInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_ValidateUserInSocialRealm", ScopeRealm)
KYCValidateUserInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_ValidateUserInSocialRealm", ScopeGlobal)
KYCValidateUser = Actions.addAction(BridgeService, KycAPI, "KYC_ValidateUser", ScopeGroup)
KYCSendSmsConsentCodeInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_SendSmsConsentCodeInSocialRealm", ScopeRealm)
KYCSendSmsConsentCodeInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_SendSmsConsentCodeInSocialRealm", ScopeGlobal)
KYCSendSmsConsentCode = Actions.addAction(BridgeService, KycAPI, "KYC_SendSmsConsentCode", ScopeGroup)
KYCSendSmsCodeInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_SendSmsCodeInSocialRealm", ScopeRealm)
KYCSendSmsCodeInSocialRealm = Actions.addAction(BridgeService, KycAPI, "KYC_SendSmsCodeInSocialRealm", ScopeGlobal)
KYCSendSmsCode = Actions.addAction(BridgeService, KycAPI, "KYC_SendSmsCode", ScopeGroup)
KYCValidateUserBasicID = Actions.addAction(BridgeService, KycAPI, "KYC_ValidateUserBasicID", ScopeRealm) /***TO BE REMOVED WHEN MULTI-ACCREDITATION WILL BE IMPLEMENTED***/ /***TO BE REMOVED WHEN MULTI-ACCREDITATION WILL BE IMPLEMENTED***/

Expand All @@ -150,7 +150,7 @@ var (
MGMTUnlockUser = Actions.addAction(BridgeService, ManagementAPI, "MGMT_UnlockUser", ScopeGroup)
MGMTGetUsers = Actions.addAction(BridgeService, ManagementAPI, "MGMT_GetUsers", ScopeGroup)
MGMTCreateUser = Actions.addAction(BridgeService, ManagementAPI, "MGMT_CreateUser", ScopeGroup)
MGMTCreateUserInSocialRealm = Actions.addAction(BridgeService, ManagementAPI, "MGMT_CreateUserInSocialRealm", ScopeRealm)
MGMTCreateUserInSocialRealm = Actions.addAction(BridgeService, ManagementAPI, "MGMT_CreateUserInSocialRealm", ScopeGlobal)
MGMTGetUserChecks = Actions.addAction(BridgeService, ManagementAPI, "MGMT_GetUserChecks", ScopeGroup)
MGMTGetUserAccountStatus = Actions.addAction(BridgeService, ManagementAPI, "MGMT_GetUserAccountStatus", ScopeGroup)
MGMTGetUserAccountStatusByEmail = Actions.addAction(BridgeService, ManagementAPI, "MGMT_GetUserAccountStatusByEmail", ScopeRealm)
Expand All @@ -171,7 +171,7 @@ var (
MGMTRevokeAccreditations = Actions.addAction(BridgeService, ManagementAPI, "ACCR_RevokeAccreditations", ScopeGroup)
MGMTSendSmsCode = Actions.addAction(BridgeService, ManagementAPI, "MGMT_SendSmsCode", ScopeGroup)
MGMTSendOnboardingEmail = Actions.addAction(BridgeService, ManagementAPI, "MGMT_SendOnboardingEmail", ScopeGroup)
MGMTSendOnboardingEmailInSocialRealm = Actions.addAction(BridgeService, ManagementAPI, "MGMT_SendOnboardingEmailInSocialRealm", ScopeRealm)
MGMTSendOnboardingEmailInSocialRealm = Actions.addAction(BridgeService, ManagementAPI, "MGMT_SendOnboardingEmailInSocialRealm", ScopeGlobal)
MGMTSendReminderEmail = Actions.addAction(BridgeService, ManagementAPI, "MGMT_SendReminderEmail", ScopeGroup)
MGMTResetSmsCounter = Actions.addAction(BridgeService, ManagementAPI, "MGMT_ResetSmsCounter", ScopeGroup)
MGMTCreateRecoveryCode = Actions.addAction(BridgeService, ManagementAPI, "MGMT_CreateRecoveryCode", ScopeGroup)
Expand Down

0 comments on commit dae7be6

Please sign in to comment.