Programmatically Fetching Access & Refresh Tokens
AnsweredI'm trying to run a curl of:
curl -i -X GET "https://account.box.com/api/oauth2/authorize?response_type=code&client_id=x&redirect_uri=https://google.com"
Which sends back
Error: redirect_uri_mismatch
From the manual (https://developer.box.com/guides/applications/custom-apps/oauth2-setup/#section-2-the-first-leg) I'm not clear what the redirect URI should be here if I'm trying to approach fetching access and refresh tokens programmatically.
-
Official comment
Hi!
According to this reference page, the redirect URI in the dev console (screenshot below) has to match the URI in the API call.
Thanks!
Alex, Box Developer Advocate
Comment actions
Please sign in to leave a comment.
Comments
1 comment