{"action":"closed","issue":{"url":"https://api.github.com/repos/Esri/esri-leaflet/issues/616","labels_url":"https://api.github.com/repos/Esri/esri-leaflet/issues/616/labels{/name}","comments_url":"https://api.github.com/repos/Esri/esri-leaflet/issues/616/comments","events_url":"https://api.github.com/repos/Esri/esri-leaflet/issues/616/events","html_url":"https://github.com/Esri/esri-leaflet/issues/616","id":100657624,"number":616,"title":"Understanding ArcGIS Online auth","user":{"login":"rowanwins","id":6735870,"avatar_url":"https://avatars.githubusercontent.com/u/6735870?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanwins","html_url":"https://github.com/rowanwins","followers_url":"https://api.github.com/users/rowanwins/followers","following_url":"https://api.github.com/users/rowanwins/following{/other_user}","gists_url":"https://api.github.com/users/rowanwins/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanwins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanwins/subscriptions","organizations_url":"https://api.github.com/users/rowanwins/orgs","repos_url":"https://api.github.com/users/rowanwins/repos","events_url":"https://api.github.com/users/rowanwins/events{/privacy}","received_events_url":"https://api.github.com/users/rowanwins/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-12T23:34:43Z","updated_at":"2015-08-13T01:54:33Z","closed_at":"2015-08-13T01:54:33Z","body":"Gday @patrickarlt & @jgravois ,\r\n\r\nI'm just working on an application that requires ArcGIS online authentication to access secure services that are hosted by AGO. I've managed to successfully use the [OAuth2 approach as per your demo](https://esri.github.io/esri-leaflet/examples/arcgis-online-auth.html) however Im wondering if it's possible to have more of an standard login page for my app rather than flashing up that oauth2 page in a separate window. Is it possible (& secure) to do something more like the [AGS auth demo](https://esri.github.io/esri-leaflet/examples/arcgis-server-auth.html) to do a post request to generate my token for AGO based on input from a custom form?\r\n\r\nAny tips would be greatly appreciated,\r\n\r\nThanks,\r\nRowan"}}