Objective:
- How do I build my app to handle authorization declines?
- What do I do on access grant decline?
- Question about the "Deny Access" button
Environment:
- Clio's API v4
Additional Information:
Declined access grants are different and separate from Deauthorization requests from users who are actively using your integration, and as such they should behave differently. Click here for more info on Deauthorization and the Deauthorization Callback URL.
Answer:
Clio's API v4 documentation section "Obtaining Authorization" says the following about access grants being declined:
If the user declines your application access, Clio will redirect their browser to the callback url with an error
parameter value of "access_denied".
If you are building a desktop or mobile application, you will need to intercept the redirect to https://app.clio.com/oauth/approval
inside your WebView/WebBrowser control and extract the error from the page's title. The title string will look like Failure error=access_denied
.