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
ArcGIS Pro version: 3 or higher.