basic-authentication

Windows Azure Basic Authentication

こ雲淡風輕ζ 提交于 2019-12-07 02:32:11
问题 I need to set up a testing website on Windows Azure, and typically to prevent random people from looking at it I would have set up basic authentication with some sort of trivial password to filter people. Windows Azure, seemingly, does not have this option. What are the alternatives? So far I am considering implementing another level of forms authentication but this is a lot of work and would need to be stripped out in the production version of the site. The documentation on implementing

Basic Authentication with Resteasy client

二次信任 提交于 2019-12-07 02:30:16
问题 I'm trying to perform an basic auth to the login-module which runs on my jboss using REST. I already found an StackOverflow topic which explains how to authenticate with credentials. RESTEasy client framework authentication credentials This does not work. Analysing the established connection with Wireshark I was not able to see an HTTP package with Authorization: Basic. After more research I found this article, http://docs.jboss.org/resteasy/docs/2.3.3.Final/userguide/html/RESTEasy_Client

Preemptive authentication with CustomBinding?

拥有回忆 提交于 2019-12-06 15:28:11
I'm writing a client against a customer's SOAP service, using WCF. We've had a number of go-arounds trying to get the authentication working. I ended up using a Custom Binding, because some random guy on the web said that BasicHttpBinding didn't support the necessary security options, and WsHttpBinding didn't support SOAP 1.1, which is what they are using. So, what I have: var message = this.constructMessagecollection); if (message != null) { var ea = new EndpointAddress(this.webServiceUrl); var binding = new CustomBinding(); binding.Elements.Add(new TextMessageEncodingBindingElement(

Solr 5.3 & Zookeeper Security Authentication & Authorization

安稳与你 提交于 2019-12-06 14:22:55
问题 There are a few topics and articles on Solr authentication & authorization, but I cannot get it to work (the way I like). I followed these tutorials / information sources: https://cwiki.apache.org/confluence/display/solr/Authentication+and+Authorization+Plugins and https://lucidworks.com/blog/2015/08/17/securing-solr-basic-auth-permission-rules/ Then I created this security.json and I confirmed it is active in Zookeeper: { "authentication":{ "class":"solr.BasicAuthPlugin", "credentials":{

IP Camera - Streaming video with the basic authentication on Chrome

◇◆丶佛笑我妖孽 提交于 2019-12-06 12:43:28
问题 I have an Amcrest IP Camera. I would like to stream video to my web page. Its url is rtsp://mycamera.com:5554/stream In order to get the stream of the camera, the camera has a following API http://mycamera.com/video.mjpg It requires the basic authentication to work. By formatting the URL and putting it into the image tag like below, I can make it work on Firefox, Safari <img src="http://username:password@mycamera.com/video.mjpg" /> However, Chrome (v.40 on mine) does not allow this kind of

Rails - authenticate_or_request_with_http_basic custom “access denied” message

佐手、 提交于 2019-12-06 09:17:02
I'm struggling myself trying to change that default message once you insert invalid credentials as username:password on rails using authenticate_or_request_with_http_basic . For example if I make a curl request on a method that need this authentication, once I insert the wrong username and password it returns HTTP Basic: Access denied. So, in this case I would like to be able to customize this message with a specific XML formatted string, (just like twitter API does). Is that possible? Thanks in advance If you want to customize the message in the login prompt, just pass the message to the

How to check contents of incoming HTTP header request

那年仲夏 提交于 2019-12-06 08:09:55
问题 I'm playing around with some APIs and I'm trying to figure this out. I am making a basic HTTP authenticated request to my server via the API. As part of this request, the authenticated key is stored in the HTTP header as username. So my question is, how do I get the contents of the incoming request such that I can perform a check against it? What I am trying to do: if incoming request has header == 'myheader': do some stuff else: return ('not authorised') For those interested, I am trying to

Password Protect one webpage in Flask app

半世苍凉 提交于 2019-12-06 07:41:54
问题 I am running a Flask web app and using Apache basic authentication(with .htaccess and .htpasswd files) to password protect it. I want to password protect only one webpage in the app. When I password protect the html file for the webpage there is no effect and the webpage is still not password protected. Could this be because it is my python file that is calling the html file using render_template? I'm not sure how to fix this issue. 回答1: You need to restrict access to your endpoint. This

outbound-gateway with Basic Authentication in spring-integration

喜夏-厌秋 提交于 2019-12-06 05:58:52
With spring-integration I would like to call an outbound-gateway with an Basic Authentication. I have something like this : <int-http:inbound-gateway id="versionRequestGateway" supported-methods="POST" request-channel="requestVersionChannel" reply-channel="requestTransformerVersionChannel" path="/consultersite" reply-timeout="10000" request-payload-type="java.lang.String"> </int-http:inbound-gateway> <int-http:outbound-gateway order="1" request-channel="requestVersionChannel" url-expression="@urlExpressionGateway.getUrlFor(payload) + '/consultersite'" reply-channel="responseVersionChannel"

$_SERVER['PHP_AUTH_USER'] empty

十年热恋 提交于 2019-12-06 05:58:04
EDIT: Problem isn't with PHP, I was using cURL wrong. Updated question to show problem I'm having with XHR. Summary: Can't get username to PHP using XHR: var xhr = Ti.Network.createHTTPClient(); xhr.timeout = 1000000; xhr.open("GET","http://myapi.com/test", false, 'user', 'pass'); xhr.send(); And in my PHP script, I'm trying to access the username with this: <?php print $_SERVER['PHP_AUTH_USER']; ?> No matter what I try it's always empty. Is there some PHP setting that I need to configure? More info: PHP Version 5.2.13, Apache, MAMP <script src="http://www.webtoolkit.info/djs/webtoolkit.base64