basic-authentication

web.config single user basic auth

核能气质少年 提交于 2020-01-14 10:23:19
问题 In nginx I can create a authentication response which sends WWW-Authenticate:Basic realm="Private Network" causing a login for a single user/password to popup without creating a login.aspx Here's my config settings <security> <authentication > <anonymousAuthentication enabled="true" userName="test" password="test" /> <!--<basicAuthentication enabled="true" logonMethod="Batch" />--> <!--<windowsAuthentication enabled="true" />--> </authentication> </security> <authentication mode="Forms">

Using ajaxSetup beforeSend for Basic Auth is breaking SignalR connection

拜拜、爱过 提交于 2020-01-12 05:23:26
问题 I have a WebApi secured with Basic Auth which is applied to the entire Api using a AuthorizationFilterAttribute. I also have SignalR Hubs sitting on several of my Api Controllers. Alongside this I have a web page which makes use of my WebApi. The web page is mostly written in Backbone, so in order to make calls to my secured WebApi, I have added the following jquery $.ajaxSetup({ beforeSend: function (jqXHR, settings) { jqXHR.setRequestHeader('Authorization', 'Basic ' + Token); return true; }

How to do basic authentication over HTTPs in Ruby?

三世轮回 提交于 2020-01-11 18:36:24
问题 After looking a lot, I've found some solutions that seem working, but not for me... For example, I have this script: require 'net/http' require "net/https" @http=Net::HTTP.new('www.xxxxxxx.net', 443) @http.use_ssl = true @http.verify_mode = OpenSSL::SSL::VERIFY_NONE @http.start() {|http| req = Net::HTTP::Get.new('/gb/PastSetupsXLS.asp?SR=31,6') req.basic_auth 'my_user', 'my_password' response = http.request(req) print response.body } When I run it, it gives me a page that requests for

Error adding enforce-valid-basic-auth-credentials to config.xml

时光毁灭记忆、已成空白 提交于 2020-01-11 13:23:11
问题 I tried adding <enforce-valid-basic-auth-credentials>false</enforce-valid-basic-auth-credentials> inside the <security-configuration> tag in config.xml of weblogic server 12.1.3 After I add this line my weblogic server goes to shutdown whenever i start up my server. is there something wrong? I have attached my config.xml contents below <domain-version>12.1.3.0.0</domain-version> <security-configuration> <name>mdm_domain</name> <realm> <sec:authentication-provider xsi:type="wls:default

How do I extract the username and password out of a URL in a servlet filter?

折月煮酒 提交于 2020-01-11 09:48:11
问题 I've created a BasicAuthFilter and it has this signature: @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException This is working if someone calls the filter with an Authorization header set the right way. But, if someone on chrome or firefox visits the url like this: http://username:password@localhost:8888 The browsers are not populating the Authorization header with that information (which surprised me). I

Keeping HTTP Basic Authentification alive while being redirected

牧云@^-^@ 提交于 2020-01-11 05:20:06
问题 We are using web service with basic authentication. It all worked all fine, till owners of web service implemented balancing service. Which is simply redirects requests to different instances of web service. The problem is that after being redirected basic authentication fails. There is "request authentication credentials was not passed" exception. Additional info: We have to create request manually. var req = (HttpWebRequest)WebRequest.CreateDefault(new Uri(Settings.Default

Keeping HTTP Basic Authentification alive while being redirected

醉酒当歌 提交于 2020-01-11 05:20:05
问题 We are using web service with basic authentication. It all worked all fine, till owners of web service implemented balancing service. Which is simply redirects requests to different instances of web service. The problem is that after being redirected basic authentication fails. There is "request authentication credentials was not passed" exception. Additional info: We have to create request manually. var req = (HttpWebRequest)WebRequest.CreateDefault(new Uri(Settings.Default

Spring Security HTTP Basic Authentication

泄露秘密 提交于 2020-01-09 05:08:21
问题 I am trying to do a really simple basic authentication with Spring Security. I have configured the namespace properly and there are no Exceptions in the server. In my "servlet.xml" I have got the next for Spring Security: <security:http> <security:http-basic></security:http-basic> <security:intercept-url method="POST" pattern="/**" access="ROLE_USER" /> </security:http> <security:authentication-manager alias="authenticationManager"> <security:authentication-provider> <security:user-service>

WSDL to PHP with Basic Auth

别说谁变了你拦得住时间么 提交于 2020-01-09 02:24:33
问题 I need to build php classes from a WSDL that is behind basic auth. It has tons of namespaces so it looks burdensome to do this by hand. I have tried a few tools but looks like the auth session isn't presistent. 回答1: $options = array( 'login' => $username, 'password' => $password, ); $client = new SoapClient($wsdl, $options); Yes, it works! I tried in a solution that I was building and it connects to my customer WS which is with HTTP Basic Auth. 回答2: HTTP Auth works with SOAP Client, however

Add Http Basic Authentication to servletRequest

耗尽温柔 提交于 2020-01-07 04:14:26
问题 I have a ProxyServlet to handle requests to another server (which uses HTTP Basic Authentication) sent from my Application, and i want to add the header manually before the Servlet fires the actual request so the User wont have to enter any credentials. I have tried something like this code below using HttpServletRequestWrapper public class DataServlet extends ProxyServlet { @Override protected void service(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws