IServiceConfiguration<TService>.AuthenticateCrossRealm Method (ClientCredentials, String, Uri)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Authenticates against a remote Secure Token Service (STS) using client credentials.
Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
SecurityTokenResponse AuthenticateCrossRealm(
ClientCredentials clientCredentials,
string appliesTo,
Uri crossRealmSts
)
Function AuthenticateCrossRealm (
clientCredentials As ClientCredentials,
appliesTo As String,
crossRealmSts As Uri
) As SecurityTokenResponse
Parameters
clientCredentials
Type: System.ServiceModel.Description.ClientCredentialsType: ClientCredentials. Specifies a client credentials instance with the Windows credentials or the UserName (.UserName and .Password) set.
appliesTo
Type: System.StringType: String. Specifies the identifier of the STS to authenticate on behalf of.
crossRealmSts
Type: System.UriType: URI. Specifies the URI of the cross realm STS metadata endpoint.
Return Value
Type: Microsoft.Xrm.Sdk.Client.SecurityTokenResponse
Type: SecurityTokenResponse
The security token response.
See Also
AuthenticateCrossRealm Overload
IServiceConfiguration<TService> Interface
Microsoft.Xrm.Sdk.Client Namespace
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright