-
-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for assets with basic auth #515
Comments
Where should we get username and password? |
We'd parse it from the URL string, just like most browsers do. I.e., you'd add an asset with the URL |
Hi @vpetersson , I'm trying to configure web asset with URL format as
FYI a get request in POSTMAN and firefox browser works fine with standard get request that lands me to the home page of the server. Postman request below is Any suggestions how to use your suggested format or anyother to login into my reporting server through screenly web asset. |
Contrary to what we previously thought, UZBL does indeed support Basic Auth. It's just supported through a somewhat odd format where you need to escape the
@
(i.e.http://username:password\@domain:port/path
. Kudos to @sodabrew for finding out about this. More information about this can be found here.In order to add this support, we need to add custom handling for this.
requests.head('https://domain/path', auth=HTTPBasicAuth('username', 'password')
uri
we pass on to UZBL as described above (i.e.http://username:password\@domain:port/path
).The text was updated successfully, but these errors were encountered: