stevenmaguire / oauth2-microsoft

Microsoft OAuth 2.0 support for the PHP League's OAuth 2.0 Client
MIT License
68 stars 41 forks source link

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

Open shinde-prasad opened 11 months ago

shinde-prasad commented 11 months ago

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//oauth2/token?grant_type=urn:ietf:params:oauth:grant-type:device_code&client_id=&device_code=

7

20

@stevenmaguire

decomplexity commented 11 months ago

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

shinde-prasad commented 11 months ago

capture_links

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

decomplexity commented 11 months ago

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

chetankerhalkarFulcrum commented 11 months ago

@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?

decomplexity commented 11 months ago

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]