IssuedTokenServiceCredential.SamlSerializer Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the custom SamlSerializer for issued service credentials.
public:
property System::IdentityModel::Tokens::SamlSerializer ^ SamlSerializer { System::IdentityModel::Tokens::SamlSerializer ^ get(); void set(System::IdentityModel::Tokens::SamlSerializer ^ value); };
public System.IdentityModel.Tokens.SamlSerializer SamlSerializer { get; set; }
member this.SamlSerializer : System.IdentityModel.Tokens.SamlSerializer with get, set
Public Property SamlSerializer As SamlSerializer
Property Value
The custom SamlSerializer for the service.
Exceptions
Attempted to set a read-only credential.
Examples
The following code shows how to set this property.
ServiceCredentials creds = new ServiceCredentials();
creds.IssuedTokenAuthentication.SamlSerializer = new
MySamSerializer();
Dim creds As New ServiceCredentials()
creds.IssuedTokenAuthentication.SamlSerializer = New MySamSerializer()
The property can also be set in a configuration file.
<!-- </system.serviceModel -->
<behaviors>
<serviceBehaviors>
<behavior name="CalculatorServiceBehavior">
<serviceCredentials>
<issuedTokenAuthentication samlSerializerType="Samples.CustomSamlSerializer, CustomSample" />
</serviceCredentials>
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Remarks
The issued tokens that this class uses are SAML tokens. Windows Communication Foundation (WCF) provides a default class SamlSerializer that is able to serialize and deserialize the majority of SAML tokens. If the service must process SAML tokens that contain elements that are not supported by the default serializer, this property can be used to provide a custom serializer capable of processing these elements.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기