I have an Angular Application that required access secure ESRI web services. Our GIS admin has provided me a username and password for accessing the services, but when I try to call the service, I get an error that I need an access token. If I manually use the username and password to generate the token and place the token in my code, I am able to retrieve the data from the service. Unfortunately, I need to generate the token in my code and pass it to my web service call. The ESRI documentation regarding token generation so far has not been helpful. I would love assistance on this. Would be happy to provide the code (C#) I have so far.
Below are some of the references I have reviewed:
https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm
Tagging other groups for better visibility: ArcGIS Pro SDK Developer Communities