Need Help with OAuth 2.0 Authentication Flow in SwiftUI

38 views
Skip to first unread message

santiago Aristizabal

unread,
Dec 1, 2024, 9:36:14 AM12/1/24
to DrChrono API Developers

Hi everyone,

I’m currently integrating the DrChrono API into my SwiftUI app, but I’ve hit a roadblock with the OAuth 2.0 authentication flow.

Here’s what’s happening:

  • I’ve set up the flow based on the documentation and confirmed everything (client ID, client secret, redirect URI, and scopes) works perfectly when tested in Postman.
  • However, when I try to implement the same flow in my app, I keep getting a 400 Bad Requesterror and can’t seem to get the callback to work.

I’ve already tried everything I could think of:

  1. Double-checked my app’s redirect URI in the DrChrono settings and ensured it matches exactly with my app's configuration.
  2. Verified the URL encoding for the parameters in the request.
  3. Followed online tutorials and examples, but none seem to resolve the issue.

At this point, I’m wondering if anyone in the community has successfully implemented the OAuth flow for DrChrono in SwiftUI. If so, could you share any ideas, tips, or even a working example that might help me get past this issue?

Thanks in advance for your help—I really appreciate it!

Reply all
Reply to author
Forward
0 new messages