cordova-plugin-inappbrowser icon indicating copy to clipboard operation
cordova-plugin-inappbrowser copied to clipboard

Navigator Authentication Component

Open abnerguimaraes opened this issue 4 years ago • 7 comments

Navigator Authentication Component

My company has an app with internal distribution that can redirect the user to other pages (intranet).

I realize there is some workarounds to this matter, but I think if the plugin could provide this component (like Safari or Chrome) it would be good :)

Navigator Auth Component

A "simple" component that allow the user to provide "user name" and "password" insted to get 401 error :)

Alternatives or Workarounds

I am sending the user to the device's native browser (safari / chrome), but I would like to keep them "inside" our app :)

Thank you.

abnerguimaraes avatar Nov 18 '21 18:11 abnerguimaraes

Do you mean you're trying to navigate to an http page with basic web server authentication and the in-app browser simply returns 401 instead of prompting for a username & password?

breautek avatar Nov 18 '21 19:11 breautek

@breautek that's it ;)

abnerguimaraes avatar Nov 19 '21 17:11 abnerguimaraes

Got it, I think this is a case that should be handled. A general browser does give you a native username/pw prompt.

I am sending the user to the device's native browser (safari / chrome)

It's safe to assume this issue occurs on both the android & iOS?

breautek avatar Nov 19 '21 18:11 breautek

It's safe to assume this issue occurs on both the android & iOS?

Actually no, I ran the tests in Android and when a got a issue in Android (that's 90% of our users), I assume the same thing will happen in iOS (because Apple has more restrictions), so since I got the issue, Iam doing that workaround.

abnerguimaraes avatar Nov 19 '21 18:11 abnerguimaraes

Ok, good to know. I'll label this as an Android issue for now, but I think we should confirm if this is also an iOS issue or not.

breautek avatar Nov 19 '21 18:11 breautek

Ok, good to know. I'll label this as an Android issue for now, but I think we should confirm if this is also an iOS issue or not.

TY!!

I'll try to run this tests ASAP, but it may take a while, We are working from home right now, and I need to be in the company to access the tests environment with the device (wi-fi + cable + macbook).

abnerguimaraes avatar Nov 19 '21 18:11 abnerguimaraes

The same thing happens to me with http basic auth it does not work

aisonsooft avatar Dec 30 '21 17:12 aisonsooft