ServiceProxy<TService>.AuthenticateCrossRealmCore Method ()

 

Applies To: Dynamics CRM 2015

Authenticates a user in a realm other than the realm that the Microsoft Dynamics CRM server is located in.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

protected virtual SecurityTokenResponse AuthenticateCrossRealmCore()
protected:
virtual SecurityTokenResponse^ AuthenticateCrossRealmCore()
abstract AuthenticateCrossRealmCore : unit -> SecurityTokenResponse
override AuthenticateCrossRealmCore : unit -> SecurityTokenResponse
Protected Overridable Function AuthenticateCrossRealmCore As SecurityTokenResponse

Return Value

Type: Microsoft.Xrm.Sdk.Client.SecurityTokenResponse

Type: SecurityTokenResponse
A security token response.

Remarks

This method will attempt to authenticate the home realm, then use the corresponding security token to authenticate to the Microsoft Dynamics CRM realm STS (Security Token Service). In addition to the normal client credential requirements, the homeRealmUri constructor parameter is expected to be set in the call to the constructor.

The returned SecurityTokenResponse should be the security token that can be used to authenticate against the Microsoft Dynamics CRM server realm STS.

This method may be overridden in the case that home realm authentication requires multiple hops, which is not supported by this call.

ServiceConfigurationand HomeRealmUri must be set prior to calling this method.

See Also

ServiceProxy<TService> Class
Microsoft.Xrm.Sdk.Client Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright