Our Portal is using default portal authentication and the ArcGIS Server is federated with the portal.
Do I use the ArcGIS Online style entry with clientId and clientSecret or do I use the ArcGIS Server token based pattern; username and password with tokenServiceUri? Or something else? Where does the token come from? Portal or Server?
If anyone could give me some examples, I would appreciate it.