GenerateCredentials Method
GenerateCredentials will be called by the system when authentication is required against
a portal or online. This method is for use in CoreHost applications only
Target Platforms: Windows 11, Windows 10, Windows 8.1
ArcGIS Pro version: 2.4 or higher.