flutter-webview-windows icon indicating copy to clipboard operation
flutter-webview-windows copied to clipboard

Basic Authentication Popup

Open maciola opened this issue 3 years ago • 4 comments

Many thanks for this great plugin!

We have some problem to access documents which are protected by Basic Authetication. When we try to access the constrained resource (server asks for basic auth) the popup for username and password does't come up so that "Authorization" header is not provided to the server and we get 401 document as result. Is there any chance to activate this popup? I have not found any options in the InAppWebViewOptions for that. Or ... do we have to implement it on our own?

maciola avatar Oct 26 '22 15:10 maciola

It‘s not implemented yet. In order to make it work, an event handler for https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_10?view=webview2-1.0.1370.28#add_basicauthenticationrequested needs to be added on the native side.

jnschulze avatar Oct 27 '22 06:10 jnschulze

@maciola did you solve this issue? How did you implement it?

Eerey avatar Mar 22 '23 11:03 Eerey

Hello Jan,

We have solved the issue by changing the auth procedure on the server. We are using an own login page to which server redirects the client in case client hasn't valid session. So it wasn't a solution in the flutter stack.

Regards, Maciej

śr., 22 mar 2023, 12:15 użytkownik Eerey Solutions @.***> napisał:

@maciola https://github.com/maciola did you solve this issue? How did you implement it?

— Reply to this email directly, view it on GitHub https://github.com/jnschulze/flutter-webview-windows/issues/202#issuecomment-1479373514, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSGGA5IVRJC6CDC6XIPMO3W5LNNRANCNFSM6AAAAAARPDFELU . You are receiving this because you were mentioned.Message ID: @.***>

maciola avatar Mar 22 '23 11:03 maciola

@maciola thanks for your kind response 👍

Eerey avatar Mar 22 '23 11:03 Eerey