🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow with PKCE (plain)
Number of APIs: 2
-
1. URL to get user_code GET https://www.arcgis.com/sharing/rest/oauth2/authorize/?client_id={{client_id}}&redirect_uri=https://hhkaos.github.io/arcgis-oauth-callback/&response_type=code&code_challenge=dd130a849d7b29e5541b05d2f7f86a4acd4f1ec598c1c9438783f56bc4f0ff80&code_challenge_method=plain&expiration=60&state=qyxmpg9e5uWUPbxw
-
4. Exchange refresh_token GET https://www.arcgis.com/sharing/rest/oauth2/token?client_id={{client_id}}&grant_type=exchange_refresh_token&redirect_uri=https://hhkaos.github.io/arcgis-oauth-callback/&refresh_token={{refresh_token}}