I would like my web application to pass a user name and password that accesses a private webmap, and to do it automatically each time I access the webmap... I do not want to type a user name & password each time or each time the token expires. Is there an API or best-practices-recommendation that would allow me to accomplish this task?
Hi Pit Dev,
Checkout this help documentation,
ArcGIS Security and Authentication | ArcGIS for Developers
Hope this helps,