Getting 403 responses on endpoints we were once able to access

86 views
Skip to first unread message

Nathan Donato

unread,
Oct 19, 2017, 12:29:33 PM10/19/17
to drchrono Medical Healthcare API SDK
Hi,

I'm an engineer with a third party application that uses the DrChrono API to import data from our customers.

We've recently started to get the following response for a few (but not all) of our customers when attempting to hit endpoints we were able to access just last month:

Status: 403
Message: "You do not have permission to perform this action."

I know we have a valid token, since we're able to hit `/api/users` without issue. Since the users endpoint doesn't require any scopes or permissions, I'm assuming it's an issue with one of those. We don't believe any permissions changed, and we didn't specify any scopes, so we should have access to all of them if I'm understanding the documentation correctly.

The reason I'm confident no permissions have changed is because one of our internal test accounts had this same issue. It was resolved by de-authorizing our application in the DrChrono app and then creating a new authorization from scratch. Since this would require a lot of user action, this isn't an ideal solution for us, so I was curious if you had any insights into what the issue is and what a better solution would be.

Thanks,
Nathan Donato

Denis Malinovskiy

unread,
Oct 19, 2017, 12:32:05 PM10/19/17
to drchrono Medical Healthcare API SDK
I know that we fixed some bugs in the API permissions checks, so maybe it's the reason.  It's difficult to tell for sure.

--
You received this message because you are subscribed to the Google Groups "drchrono Medical Healthcare API SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drchrono-api...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Denis Malinovskiy
Software Engineer, drchrono

Ben West

unread,
Oct 19, 2017, 6:31:35 PM10/19/17
to drchro...@googlegroups.com

Thanks for the response Denis. As I'm sure you understand, this is a big issue for us as it causes the integration with drchrono to completely stop working.

 

Is there a way that we can troubleshoot this? How can we prevent this from happening in the future?

Denis Malinovskiy

unread,
Oct 19, 2017, 6:34:32 PM10/19/17
to drchro...@googlegroups.com
It's not 100% clear for my why it happened in the first place so I can't give you recommendations.

Ben West

unread,
Oct 19, 2017, 6:36:19 PM10/19/17
to drchro...@googlegroups.com

Is there a way that we can see what permissions we currently have with our token?

Denis Malinovskiy

unread,
Oct 19, 2017, 6:46:06 PM10/19/17
to drchro...@googlegroups.com
Yes, but permissions vary for each doctor using your app.  

Ben West

unread,
Oct 19, 2017, 6:48:53 PM10/19/17
to drchro...@googlegroups.com

Sure, could you tell us how we can see those permissions? We did not see any documentation on the API page

Denis Malinovskiy

unread,
Oct 19, 2017, 6:59:41 PM10/19/17
to drchro...@googlegroups.com
It's only available to us, unfortunately.

Michael Nusimow

unread,
Oct 19, 2017, 7:11:07 PM10/19/17
to drchro...@googlegroups.com
Hi Ben,
  Is this happening for all of your users or just a few specific users?

The individual users can see what permissions they gave you (and disconnect and reconnect the app) with: https://drchrono.com/api-authorization-management/

Also check what permissions your app has live in: https://drchrono.com/api-management/
--
Michael Nusimow / CEO and Cofounder
917.586.1476 / mic...@drchrono.com / @nusimow

Ben West

unread,
Oct 20, 2017, 11:36:35 AM10/20/17
to drchro...@googlegroups.com

Thanks Michael. I just tried this for a test account, and it seems like once I de-authorize then the application is not listed anymore in drchrono. If our customer did try to de-authorize, is there an easy way for them to reauthorize afterwards?

Denis Malinovskiy

unread,
Oct 20, 2017, 12:21:31 PM10/20/17
to drchro...@googlegroups.com
I don't think we have an easy way to reauthorize the app, Ben.

Michael Nusimow

unread,
Oct 20, 2017, 12:45:53 PM10/20/17
to drchro...@googlegroups.com
Hi Ben,
  The end-user can just do another OAuth session like they did the first time (but there isn't an automated way to deauth and reauth.)
Reply all
Reply to author
Forward
0 new messages