I'm trying to log in to EITHER a private web map or web app with hard-coded credentials (or getting a token).
Currently I have the code to get a token for a web app, through providing client_id and client_secret. However, as it seems a web app has to be fully shared, it kicks me back out to the login screen.
Could someone point me in the right direction for how to basically do the same thing with a web map? This is all on ArcGIS Online by the way, not ArcGIS Server. I got the token generated using C#.