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

AF SDK Reference

PIServer.RefreshOIDCToken Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIServer.RefreshOIDCToken Method
Refreshes OIDC token on the PI Data Archive. New access token to refresh the connection; if null, will try refresh token if available. This exception will be generated if newAccessToken and refresh token are both unavailable.

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

Syntax

public void RefreshOIDCToken(
	string newAccessToken
)
Public Sub RefreshOIDCToken ( 
	newAccessToken As String
)

Dim instance As PIServer
Dim newAccessToken As String

instance.RefreshOIDCToken(newAccessToken)
public:
void RefreshOIDCToken(
	String^ newAccessToken
)
member RefreshOIDCToken : 
        newAccessToken : string -> unit 

Parameters

newAccessToken
Type: SystemString

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
Related Links
TitleResults for “How to create a CRG?”Also Available in