AFGlobalSettings.PreferOpenIdAuth Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: AFGlobalSettingsPreferOpenIdThis 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.