Jaa


ServiceProxy<TService>.AuthenticateCrossRealmCore Method ()

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

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

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

Syntax

protected virtual SecurityTokenResponse AuthenticateCrossRealmCore()
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 365 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 365 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

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright