From 76c276993ee7cf4526342b87571884d0c8286358 Mon Sep 17 00:00:00 2001 From: Bastien Beuchat Date: Wed, 12 Apr 2023 11:07:46 +0200 Subject: [PATCH] [CLOUDTRUST-4847] Change scope for social auth to global --- security/authorization.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/security/authorization.go b/security/authorization.go index a7b5ef8..0069624 100644 --- a/security/authorization.go +++ b/security/authorization.go @@ -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***/ @@ -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) @@ -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)