Google's OAuth 2.0 policy starting July 24, 2023

Hello,
I've received a notification from Google Workspace for Education regarding the following:
We're writing to let you know that we are expanding the application of our Google OAuth 2.0 policy. Starting July 24, 2023, we will no longer support the use of embedded webview libraries to access Google account data through OAuth 2.0 on Android and iOS applications for users.
Users won't be able to sign in with their Google account or authorize access to Google APIs through apps using embedded webview libraries such as:

  • Android WebView
  • WKWebView on iOS
  • UIWebView on iOS

We have a mobile app that uses WkWebView to authenticate users via their Google accounts.
For example:
WKWebView *webView = [[WKWebView alloc] initWithFrame:self.view.frame configuration:configureWebView];
webView.navigationDelegate = self;
NSURL *nsurl=[NSURL URLWithString:@https://our school"/app/sso/auth/'custom app'"];
NSURLRequest *nsrequest=[NSURLRequest requestWithURL:nsurl];
[webView loadRequest:nsrequest];
[self.view addSubview:webView];

The yellow high light is where we call the WKWebView to present the url (highlighted in red) to the user to log in to myschoolapp via Google.

Is anyone in the community using the WKWebView class in their mobile app to present to users a prompt to authenticate using their Google account?

If so do you know of any alternative class or library we are supposed to use if we need to present a Google authentication login prompt for our users?

Thanks

Note: apologies if this post is in the wrong forum.

Comments

Categories