- How do I build my app to handle authorization declines?
- What do I do on access grant decline?
- Question about the "Deny Access" button
- API v4
Declined access grants to function differently 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.
Clio's API v4 documentation says the following about access grants being declined at https://app.clio.com/api/v4/documentation/#section/Authorization-with-OAuth-2.0/Obtaining-Authorization
If the user declines your application access, Clio will redirect their browser to the callback url with an
errorparameter 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