Skip to content

OAuth Authorization Fails with 'Access Blocked – This request is blocked by Google policy' #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
skhetripal opened this issue May 19, 2025 · 2 comments

Comments

@skhetripal
Copy link

Hi
I'm integrating SMART on FHIR in an iOS app using the Swift-SMART client to authenticate with a MEDITECH EHR system. When attempting to authorize using the SMART client, the following error is returned:

"Access Blocked – This request is blocked by Google policy"

Context:

  • MEDITECH uses Google OAuth 2.0 as its identity provider.
  • The current implementation of the SMART client uses a WKWebView to present the authorization flow.
  • Google, following OAuth 2.0 best practices, blocks authentication requests from embedded web views such as WKWebView for security reasons.

Problem-
Since the authentication flow is initiated inside a WKWebView, Google blocks the login attempt, making it impossible to proceed with OAuth authorization.

@skhetripal
Copy link
Author

@drdavec @xmlmodeling Could you please look at once on this?
Thanks

@dogversioning
Copy link

@skhetripal while I don't believe anyone is actively supporting this repository right now, if you (or anyone else) want to take a swing at addressing this, someone from the Cumulus team can review PRs and cut releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants