This topic outlines the steps required to enable message-level security for messages exchanged within a reliable session using one of the system-provided bindings that support such a session, but not by default. Enable a secure, reliable session either imperatively by using code or declaratively in the configuration file. This procedure uses the client and service configuration files to enable the secure, reliable session.
This procedure consists of the following three key tasks:
Specify that the client and service exchange messages within a reliable session.
Require message-level security within the reliable session.
Specify the client credential type that the client must use to be authenticated with the service.
It's important in the first task that the endpoint configuration element contain a bindingConfiguration attribute that references a binding configuration named (in this example) MessageSecurity. The <binding> configuration element then references this name to enable reliable sessions by setting the enabled attribute of the <reliableSession> element to true. You can require that the ordered delivery assurances are available within a reliable session by setting the ordered attribute to true.
For the source copy of the example on which this configuration procedure is based, see the WS Reliable Session.
The essential items of the second task are accomplished by setting the mode attribute of the <security> element contained in the <binding> element of the client and service to Message.
The essential items of the third task are accomplished by setting the clientCredentialType attribute of the <message> element contained in the <security> element of the client and service to Certificate.
Note
When using message security with reliable sessions, Reliable Messaging attempts to authenticate an unauthenticated client until a timeout occurs instead of throwing an exception upon first failure.
Configure the service with a WSHttpBinding to use a reliable session
As an Information Security Administrator, you plan and implement information security of sensitive data by using Microsoft Purview and related services. You’re responsible for mitigating risks by protecting data inside collaboration environments that are managed by Microsoft 365 from internal and external threats and protecting data used by AI services. You also implement information protection, data loss prevention, retention, insider risk management, and manage information security alerts and activities.