Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

PIAuthenticationMode Enumeration

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIAuthenticationMode Enumeration
The authentication mode to use when making an explicit connection to a PIServer.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public enum PIAuthenticationMode
Public Enumeration PIAuthenticationMode

Dim instance As PIAuthenticationMode
public enum class PIAuthenticationMode
type PIAuthenticationMode

Members

  Member nameValueDescription
WindowsAuthentication0 Specifies that Windows Authentication should be used when making the connection.
PIUserAuthentication1 Specifies that PI User Authentication should be used when making the connection.
OpenIDConnectAuthentication2 Specifies that Claims Authentication should be used when making the connection.
None3 Specifies that the Authentication mode has not been initialized.

Remarks

This enumeration is used to specify the authentication mode to use when making an explicit connection to a PIServer. When using WindowsAuthentication mode to connect to a PIServer, the authentication only uses identity mappings and does not utilize trusts defined with Windows credentials or any other trusts that may be configured.
Note Note
When prompting for credentials, the PIUserAuthentication mode is only allowed when the AllowExplicit option is set in the AuthenticationOptions setting.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6

See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in