1. URL to get user_code
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
client_id | string | (Required) The ID of the registered application. Use: https://developers.arcgis.com/applications/ | |
redirect_uri | string | (Required) {{client_id}}'s "Redirect URLs" have to be configured to accept it. For web: https://.... | |
response_type | string | (Required) Type of grant, either implicit (token) or authorization (code) | |
code_challenge | string | (Required) SHA256(random) | |
code_challenge_method | string | (Required) Indicates whether the code_challenge value is SHA256 hash or plain text | |
expiration | number | For refresh_token (specified in minutes). Max. 129600 minutes (90 days) | |
state | string | Value used by applications to maintain state between authorization requests and responses or pass along additional app-specific information. This also allows you to prevent CSRF attacks by confirming that the value coming from the response matches the one you sent. | |
locale | string | The login page will be rendered using the language corresponding to that locale | |
style | string | Color scheme used to render the login page regardless of browser or operating system settings (light |
RESPONSES
status: OK
"\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n \u003chead\u003e\n \u003cmeta charset=\"UTF-8\"\u003e\n \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"\u003e\n \u003cmeta name=\"referrer\" content=\"origin\"\u003e\n \u003ctitle\u003eSign In\u003c/title\u003e\n \u003cscript src=\"/sharing/files/scripts/detector.min.js?v=1A68A60\"\u003e\u003c/script\u003e\n \u003clink rel=\"stylesheet\" href=\"/sharing/files/css/site.min.css?v=1A68A60\"\u003e\n \u003cscript src=\"/sharing/files/scripts/theme.min.js?v=1A68A60\"\u003e\u003c/script\u003e\n \u003cscript\u003e\n var oAuthInfo = {\"oauth_state\":\"aEEQNHHaVBv4esD0hIHWAUQ..GnqV1Z39RQZJaXFeSSE7kbbWcfg_NElHTcRANO7I_InECmH3X0WdmsQtmgGl9rn2Kr-ukgxYCKYXJQBPI11uVn1PVdMhRI00wH8ioc5gqwUEP1mexUK7wPSHLoDpFEEudgQtSZDPfkkP4GTFwEAjnzbMK6EFZbBmPBSqorG7FAAfqMkHcz4_OEb25Lqvn56f4AgZ6ByJWwdqbiCYFJ5xFsVbuzhutJDpNCCptmBQzpCwd6lfuFRuuU-tYQVAW4WWuFdcnCbTG_GpdN8xwOfKEZQBaL8diPjmKIQZ3PxFxmpASLxcGMMu4D8CZozI5vk.\",\"client_id\":\"13UCJocz87fHJNs6\",\"appTitle\":\"oAuth app - DevSummit Berlin\",\"locale\":\"en-us\",\"showSocialLogins\":true,\"contextPath\":\"/sharing\",\"appOrgInfo\":{\"id\":\"Q6ZFRRvMTlsTTFuP\",\"name\":\"Raul Jimenez Ortega Account\",\"description\":\"This is the organisation page of my developer account. You can see here some of the projects I have participated. If you want to read more about me please go toΒ \n \u003ca href=\\\"http://www.rauljimenez.info\\\" target=\\\"_blank\\\"\u003erauljimenez.info\u003c\\/a\u003e\",\"thumbnail\":\"thumbnail.png\"},\"orgUrlBase\":\"maps.arcgis.com\",\"helpBase\":\"https://doc.arcgis.com/en/arcgis-online/\",\"socialProviders\":[\"github\",\"facebook\",\"google\",\"apple\"],\"originSignin\":false}\n window.setTheme(oAuthInfo, \"/sharing\");\n \n \u003c/script\u003e\n \u003cscript src=\"/sharing/files/scripts/oauth2.js?v=1A68A60\"\u003e\u003c/script\u003e\n \u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv class=\"content-container\"\u003e\u003c/div\u003e\n \u003c/body\u003e\n \u003cscript\u003e\n oAuthInfo.locale = ((oAuthInfo.locale \u0026\u0026 oAuthInfo.locale === \"iw\") ? \"he\" : oAuthInfo.locale);\n require.config({\n baseUrl: \"/sharing/files/scripts/\",\n locale: oAuthInfo.locale \u0026\u0026 oAuthInfo.locale.toLowerCase() || \"\"\n });\n require([\"signIn\", \"domReady!\"], function (signIn) {\n signIn.startup(oAuthInfo);\n });\n\u003c/script\u003e\n \u003c/html\u003e"