otros-systems / otroslogviewer

Log viewer focused on developers work
Apache License 2.0
424 stars 86 forks source link

Support authentication from drag and drop URIs #278

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
DragAndDropFilesHandler's usage of VFS FileManager.resolveFile does not include 
an implementation of UserAuthenticator, so if you try to drag and drop a URL 
from a browser behind basic auth it throws an error instead of prompting the 
user for their credentials.

I started to implement a dialog for UserAuthenticator, but noticed there is one 
in otrosvfsbrowser, and that already has support for storing credentials.  
However, a naive replacement with VFSUtils.resolveFile gave a nullpointer at 
UseCentralsFromSessionUserAuthenticator.requestAuthentication, so I'm not sure 
how functional this is.

Original issue reported on code.google.com by halova...@gmail.com on 22 Nov 2013 at 2:13

GoogleCodeExporter commented 9 years ago
browser_http_auth.patch is for otrosvfsbrowser (I'm attaching here instead of 
opening a separate issue on that project) to handle auth for http/https URLs.

logviewer_http_auth.patch is therefore just to use the patched otrosvfsbrowser 
to handle drag and drop files.

Original comment by halova...@gmail.com on 24 Nov 2013 at 3:34

Attachments:

StepanOrt commented 3 years ago

I would really appreciate a popup if the response is 401 where I could select between different types of Authorization header (Basic, Digest, Bearer token, ...)