Skip to content

Commit fb1f5d2

Browse files
Ares Ouaresowj
andauthored
Remove unnecessary Manage claim from sender and receiver (Azure#18740)
Co-authored-by: Ares Ou <weo@microsoft.com>
1 parent 0c8017f commit fb1f5d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/servicebus/Microsoft.Azure.ServiceBus/src/Core/MessageReceiver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ async Task<RequestResponseAmqpLink> CreateRequestResponseLinkAsync(TimeSpan time
16201620
amqpLinkSettings.AddProperty(AmqpClientConstants.EntityTypeName, AmqpClientConstants.EntityTypeManagement);
16211621

16221622
var endpointUri = new Uri(this.ServiceBusConnection.Endpoint, entityPath);
1623-
string[] claims = { ClaimConstants.Manage, ClaimConstants.Listen };
1623+
string[] claims = { ClaimConstants.Listen };
16241624
var amqpRequestResponseLinkCreator = new AmqpRequestResponseLinkCreator(
16251625
entityPath,
16261626
this.ServiceBusConnection,

sdk/servicebus/Microsoft.Azure.ServiceBus/src/Core/MessageSender.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ async Task<RequestResponseAmqpLink> CreateRequestResponseLinkAsync(TimeSpan time
747747
audience = new string[] { endpointUri.AbsoluteUri };
748748
}
749749

750-
string[] claims = { ClaimConstants.Manage, ClaimConstants.Send };
750+
string[] claims = { ClaimConstants.Send };
751751
var amqpRequestResponseLinkCreator = new AmqpRequestResponseLinkCreator(
752752
entityPath,
753753
this.ServiceBusConnection,

0 commit comments

Comments
 (0)