ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.SystemCore Namespace / IArcGISSignOn Interface / SignInWithCredentials Method
The uri of the portal to sign on to
The user name to use for credentails or null
The password to use for credentials or null
The referer to use with the access token
The returned access token

In This Topic
    SignInWithCredentials Method (IArcGISSignOn)
    In This Topic
    Sign in to the portal provided by the Uri. This method is for use in CoreHost applications only
    Syntax
    bool SignInWithCredentials( 
       Uri portalUri,
       string user,
       string password,
       out string referer,
       out string token
    )
    Function SignInWithCredentials( _
       ByVal portalUri As Uri, _
       ByVal user As String, _
       ByVal password As String, _
       ByRef referer As String, _
       ByRef token As String _
    ) As Boolean

    Parameters

    portalUri
    The uri of the portal to sign on to
    user
    The user name to use for credentails or null
    password
    The password to use for credentials or null
    referer
    The referer to use with the access token
    token
    The returned access token
    Remarks
    For use in CoreHost applications only.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also