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

AF SDK Reference

AFGlobalSettings.PreferOpenIdAuth Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFGlobalSettings.PreferOpenIdAuth Property
Setting determines if Client initial connects should prompt for Authentication type selection or default to using Windows or OpenId Connect.

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

Syntax

public static AFGlobalSettingsPreferOpenId PreferOpenIdAuth { get; set; }
Public Shared Property PreferOpenIdAuth As AFGlobalSettingsPreferOpenId
	Get
	Set

Dim value As AFGlobalSettingsPreferOpenId

value = AFGlobalSettings.PreferOpenIdAuth

AFGlobalSettings.PreferOpenIdAuth = value
public:
static property AFGlobalSettingsPreferOpenId PreferOpenIdAuth {
	AFGlobalSettingsPreferOpenId get ();
	void set (AFGlobalSettingsPreferOpenId value);
}
static member PreferOpenIdAuth : AFGlobalSettingsPreferOpenId with get, set

Property Value

Type: AFGlobalSettingsPreferOpenId
This setting is used by clients to determine if the user should be prompted to select an authentication mode when first connecting to a server. This value defaults to Prompt

Remarks

If the option is set to Always client applications will automatically popup a browser to get OpenId credentials when first connecting to servers that support OIDC. If the option is set to Never client applications will prefer connecting as the current windows user. If the option is set to Prompt client applications will prompt the user for their selection each time. This setting does not affect behavior when using "Connect As" options in PSE and Builder.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0

See Also

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