Skip to content

Commit d19b73e

Browse files
committed
update
1 parent f82bd35 commit d19b73e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

articles/service-bus-messaging/service-bus-amqp-protocol-guide.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -354,26 +354,26 @@ The request message has the following application properties:
354354

355355
| Key | Optional | Value Type | Value Contents |
356356
| --- | --- | --- | --- |
357-
| operation |No |string |**put-token** |
358-
| type |No |string |The type of the token being put. |
359-
| name |No |string |The "audience" to which the token applies. |
360-
| expiration |Yes |timestamp |The expiry time of the token. |
357+
| `operation` |No |string |**put-token** |
358+
| `type` |No |string |The type of the token being put. |
359+
| `name` |No |string |The "audience" to which the token applies. |
360+
| `expiration` |Yes |timestamp |The expiry time of the token. |
361361

362362
The *name* property identifies the entity with which the token shall be associated. In Service Bus it's the path to the queue, or topic/subscription. The *type* property identifies the token type:
363363

364364
| Token Type | Token Description | Body Type | Notes |
365365
| --- | --- | --- | --- |
366-
| jwt |JSON Web Token (JWT) |AMQP Value (string) | |
367-
| servicebus.windows.net:sastoken |Service Bus SAS Token |AMQP Value (string) |- |
366+
| `jwt` |JSON Web Token (JWT) |AMQP Value (string) | |
367+
| `servicebus.windows.net:sastoken` |Service Bus SAS Token |AMQP Value (string) |- |
368368

369369
Tokens confer rights. Service Bus knows about three fundamental rights: "Send" enables sending, "Listen" enables receiving, and "Manage" enables manipulating entities. Service Bus SAS tokens refer to rules configured on the namespace or entity, and those rules are configured with rights. Signing the token with the key associated with that rule thus makes the token express the respective rights. The token associated with an entity using *put-token* permits the connected client to interact with the entity per the token rights. A link where the client takes on the *sender* role requires the "Send" right; taking on the *receiver* role requires the "Listen" right.
370370

371371
The reply message has the following *application-properties* values
372372

373373
| Key | Optional | Value Type | Value Contents |
374374
| --- | --- | --- | --- |
375-
| status-code |No |int |HTTP response code **[RFC2616]**. |
376-
| status-description |Yes |string |Description of the status. |
375+
| `status-code` |No |int |HTTP response code **[RFC2616]**. |
376+
| `status-description` |Yes |string |Description of the status. |
377377

378378
The client can call *put-token* repeatedly and for any entity in the messaging infrastructure. The tokens are scoped to the current client and anchored on the current connection, meaning the server drops any retained tokens when the connection drops.
379379

@@ -395,8 +395,8 @@ With this functionality, you create a sender and establish the link to the `via-
395395
396396
| Client | Direction | Service Bus |
397397
| :--- | :---: | :--- |
398-
| attach(<br/>name={link name},<br/>role=sender,<br/>source={client link ID},<br/>target=**{via-entity}**,<br/>**properties=map [(<br/>com.microsoft:transfer-destination-address=<br/>{destination-entity} )]** ) | ------> | |
399-
| | <------ | attach(<br/>name={link name},<br/>role=receiver,<br/>source={client link ID},<br/>target={via-entity},<br/>properties=map [(<br/>com.microsoft:transfer-destination-address=<br/>{destination-entity} )] ) |
398+
| `attach(<br/>name={link name},<br/>role=sender,<br/>source={client link ID},<br/>target=**{via-entity}**,<br/>**properties=map [(<br/>com.microsoft:transfer-destination-address=<br/>{destination-entity} )]** )` | ------> | |
399+
| | <------ | `attach(<br/>name={link name},<br/>role=receiver,<br/>source={client link ID},<br/>target={via-entity},<br/>properties=map [(<br/>com.microsoft:transfer-destination-address=<br/>{destination-entity} )] )` |
400400

401401
## Next steps
402402
To learn more about AMQP, see [Service Bus AMQP overview](service-bus-amqp-overview.md).

0 commit comments

Comments
 (0)