/// <summary> /// Gets the user ID for this request. /// </summary> private string GetUserId() { // If we are here the client is already authorized. // So there is a client ID and the client is active. var client = _authorizationHelper.GetCurrentClientFromClaims(); return(client.ClientId); }
/// <summary> /// Gets the user ID for this request. /// </summary> private string GetUserId() { // If we are here the client is already authorized. // So there is a client ID and the client is active. var client = _authorizationHelper.GetCurrentClientFromClaims(); var storeId = _storeContext.CurrentStore.Id; var webHookUser = client.ClientId + "-" + storeId; return(webHookUser); }