oauth2-microsoft icon indicating copy to clipboard operation
oauth2-microsoft copied to clipboard

Getting blank screen on iPhone on clicking Microsoft oauth 2.0 button in PWA web app

Open shinde-prasad opened this issue 1 year ago • 5 comments

Hi There,

We are facing signing-in issue using Microsoft oauth2.0 in pwa app. we have configured the details and pwa app signing using AD credentials works fine on browser safari. but when pwabuild app is installed on phone it gives blank screen on phone when click on sign in button and it stuck there and nothing showsup after that.

Please help me solve this issue. I am using below URL for sending the http request from the app-

https://login.microsoftonline.com/<tenent_id>/oauth2/token?grant_type=urn:ietf:params:oauth:grant-type:device_code&client_id=<client_id>&device_code=<device_code>

#7 #20 @stevenmaguire

shinde-prasad avatar Dec 07 '23 18:12 shinde-prasad

Do you have a capture_links parameter in the manifest? If so, what is its assigned value?

decomplexity avatar Dec 08 '23 10:12 decomplexity

capture_links

can you help with the documentation link for this field where and what values should be required for pwa app

shinde-prasad avatar Dec 08 '23 13:12 shinde-prasad

See e.g. https://developer.chrome.com/docs/web-platform/declarative-link-capturing/, although whether this is relevant depends on whether is has been implemented in your PWA context and whether the link is within your manifest's scope (not to be confused with OAuth2 scope!). IOS with Safari were always problematic for PWA apps

decomplexity avatar Dec 08 '23 13:12 decomplexity

@decomplexity Thank you for your help but somehow after adding this we are still getting the blank screen suspect is navigationAction.request.url for WKWebView. Can you please provide some insights about it if possible?

chetankerhalkarFulcrum avatar Dec 08 '23 15:12 chetankerhalkarFulcrum

This looks more like a WKWebView coding problem, and I think you might get some better suggestions if you post on Stackoverflow using the tag [progressive-web-apps]

decomplexity avatar Dec 08 '23 17:12 decomplexity