🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow with PKCE (SHA256) | ⭐ Recommended
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=qaXuju2sX8lKLvErIKHfdrg0h7DLvSeLuErfsfMJFj4&code_challenge_method=S256&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}}