http-authentication

RTSP Authentication : digest issue

泪湿孤枕 提交于 2019-12-21 20:29:38
问题 I need to authenticate my RTSP stream to a streaming server, here is the challenge : RTSP/1.0 401 Unauthorized WWW-Authenticate: Digest realm="Streaming Server", nonce="76bfe6986d3e766424de9bd6e7d3ccc1" Session: 1845562184;timeout=60 Cseq: 1 ... Wirecast manage to successfully authenticate with those settings : Host name : 192.168.33.9:1935/live/my_stream.sdp location : live/my_stream.sdp username : user password : test its response is : e1dff363b9763df0c7615429af79715c So according to

Java: fetch URL with HTTPBasic Authentication

筅森魡賤 提交于 2019-12-21 04:05:34
问题 I'm doing some simple HTTP authentication and am getting a java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic OGU0ZTc5ODBk(...trimmed from 76 chars...) (...more password data...) which I think is due to me having a really long username and password and the encoder wraps it with a \n at 76 chars. Is there any way I can get around this? The URL only supports HTTP Basic Auth. Here is my code: private class UserPassAuthenticator extends Authenticator { String

Do HTTP authentication over HTTPS with URL rewriting

好久不见. 提交于 2019-12-20 23:24:22
问题 I am trying to protect the ~/public_html/dev directory using http auth basic, but to make that secure I want to run it over ssl. The middle section of the below .htaccess file switches to https if the request URI begins with /dev and works. The last section of the file works as well but does not work properly with the https redirect. I basically want to be able to type http://www.example.com/dev/some_sub_dir/ and be redirected to https://www.example.com/dev/some_sub_dir/ and prompted for the

HTTP basic authentication URL with “@” in password

梦想的初衷 提交于 2019-12-20 10:19:05
问题 I'm trying to set up some selenium tests to our staging server using Sauce Labs. It's behind a basic http auth, so theoretically I could set the selenium URL to http://user:password@www.stagesite.com . However, the password contains a "@", causing all sorts of problems as you can imagine. I tried escaping it with a backslash but that did nothing from what I can tell. So, is there an alternative way to do http authentication using selenium, i.e., not via the URL. Or, is there a way to use URL

How to show an image which is secured by http authentication

孤人 提交于 2019-12-19 03:24:32
问题 How can i show an image from a server with standard http protection without showing the authentication window? I now use standard html <img src="..."> but because the image is protected this asks for an authentication window. I do have the login data, how can i show the image? Regards, Tom. 回答1: This should work. Simply replace the username and password with your authentication details. (Warning: Doesn't work in all browsers) <img src="http://username:password@server/Path" /> I would

Gradle use certificate authentication for repository

蓝咒 提交于 2019-12-18 10:45:01
问题 The Problem I have a Android Gradle project which should pull a lib from my companys sonatype nexus server. The nexus server uses a certificate authentication. That means the client has a private certificate which authenticates and authorizes him against the nexus server. The problem is how to configure gradle to use my certificate (which is in the osx keystore). /app/build.gradle repositories { // some other repositorys... ... maven { credentials { username = NEXUS_USERNAME password = NEXUS

Retrofit POST request w/ Basic HTTP Authentication: “Cannot retry streamed HTTP body”

妖精的绣舞 提交于 2019-12-18 10:20:09
问题 I'm using Retrofit to do a basic POST request, and I'm providing a basic @Body for the request. @POST("/rest/v1/auth/login") LoginResponse login(@Body LoginRequest loginRequest); When I'm building the interface for Retrofit I'm providing my own custom OkHttpClient, and all that I'm doing to it is adding my own custom authentication: @Provides @Singleton public Client providesClient() { OkHttpClient httpClient = new OkHttpClient(); httpClient.setAuthenticator(new OkAuthenticator() { @Override

How do I provide basic http authentication for static tomcat webapps without changing tomcat-users.xml?

天大地大妈咪最大 提交于 2019-12-18 04:44:12
问题 I have access to the tomcat manager and can upload war-files. One of these wars is a static web project (zipped html + media files, renamed to *.war). I want add a Web-INF/web.xml file to this war to protect the content with basic http auth. I know how to do this by adding global users and assigning roles in the tomcat-users.xml , but I want to have all usernames and passwords defined in my war-file. Can this be done without touching the tomcat's tomcat-users.xml ? And if yes, how do I

PHP CURL returns nothing

亡梦爱人 提交于 2019-12-18 03:50:07
问题 function ParseUrl($URL) { $crl = curl_init(); curl_setopt ($crl, CURLOPT_URL, $URL); curl_setopt ($crl, CURLOPT_PORT, 8086); curl_setopt ($crl, CURLOPT_USERPWD, "admin:pass"); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, 5); $ret = curl_exec($crl); curl_close($crl); return $ret; } echo ParseUrl('http://xxx.me/serverinfo'); The code above simply returns nothing. The page I am trying to get with curl uses http authentication thing. Am I missing

GreaseMonkey script to auto login using HTTP authentication

℡╲_俬逩灬. 提交于 2019-12-17 22:38:11
问题 I've got quite a few GreaseMonkey scripts that I wrote at my work which automatically log me into the internal sites we have here. I've managed to write a script for nearly each one of these sites except for our time sheet application, which uses HTTP authentication. Is there a way I can use GreaseMonkey to log me into this site automatically? Edit: I am aware of the store password functionality in browsers, but my scripts go a step further by checking if I'm logged into the site when it