basic-authentication

Automatically closing an excel popup prompt using VBscript

房东的猫 提交于 2019-11-28 12:25:23
问题 I have an excel file that is supposed to access a remote monitoring server through a web query. Since the data in the file has to be periodically refreshed and saved, I have written a .vbs script to do it. It works fine, but since the server uses basic authentification security, which cannot be turned off, each time it runs, excel throws a popup "Windows Security" window asking for the username and password. There is an option to "Save credentials", but it still requires for the user to click

HTTP Basic Authentication issue on Android Jelly Bean 4.1 using HttpURLConnection

妖精的绣舞 提交于 2019-11-28 12:23:37
We are making HttpURLConnection based request to the Web server using HTTP Basic Authentication. Code works great on Android versions 2.x, 3.x., 4.0.x Now with Jelly Bean and v4.1.x authentication fails with the following messages in the LogCat: 01-27 10:54:18.886: ...::doReadRawData(731): An exception occured while reading data from remote host. httpURLConn.responseCode = 401 / httpURLConn.responseMessage = UNAUTHORIZED 01-27 10:54:18.886: ...::doReadRawData(731): java.io.IOException: No authentication challenges found The Authentication code we using for HttpURLConnection as in the Android

Getting Basic Authentication to work with ColdFusion

纵然是瞬间 提交于 2019-11-28 12:18:06
I am trying to send an authenticated POST request using ColdFusion, but for some reason, the server is rejecting the request as unauthorized. I have verified that the credentials are correct. <cfhttp url="https://api.juspay.in/order/create" method="POST" username="320EABE1225D45E6B13DF5D3D2BBDB80" password=""> <cfhttpparam name="amount" type="formField" value="10"> <cfhttpparam name="order_id" type="formField" value="cfhttp_test_order_001"> <cfhttpparam name="customer_id" type="formField" value="10"> <cfhttpparam name="customer_email" type="formField" value="user@mail.com"> <cfhttpparam name=

Flask HTTP Basicauth - How does it work?

喜你入骨 提交于 2019-11-28 11:39:00
I'm trying to create a login system using Flask and HTTP Basic Auth. My question is, is it my responsibility to provide user information from databases, or does basicauth create and access those databases for me? If it doesn't, what can I use to do that? Werkzeug can decode the Basic Authorization header for you, into the username and password. The rest is up to you to see what you want to do with that information. The request.authorization attribute returns a Authorization object . For basic authentication headers, only username and password are set. A simple Flask snippet is available that

how to do Auth in node.js client

强颜欢笑 提交于 2019-11-28 11:16:52
I want to get use this rest api with authentication. I'm trying including header but not getting any response. it is throwing an output which it generally throw when there is no authentication. can anyone suggest me some solutions. below is my code var http = require('http'); var optionsget = { host : 'localhost', // here only the domain name port : 1234, path:'/api/rest/xyz', headers: { 'Authorization': 'Basic ' + new Buffer('abc'+ ':' + '1234').toString('base64') } , method : 'GET' // do GET }; console.info('Options prepared:'); console.info(optionsget); console.info('Do the GET call'); var

Unable to authenticate with jax-ws on Glassfish

落爺英雄遲暮 提交于 2019-11-28 10:51:09
问题 I have been trying to create a java service that uses basic authentication over SSL. Configuring the SSL was quite simple but configuring authentication is much more of a problem. Any time I try to call a method marked with a @RolesAllowed annotation I receive the following exception... Exception in thread "AWT-EventQueue-0" javax.xml.ws.soap.SOAPFaultException: javax.ejb.EJBAccessException at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178) at com.sun.xml

Sending basic authentication information via form

隐身守侯 提交于 2019-11-28 07:36:14
I am working on a site that currently uses a basic authentication dialog box login system, that is the type of dialog that you get if you go here: http://www.dur.ac.uk/vm.boatclub/password/index.php I did not set this system up and am not in a position to easily/quickly work around it, but it DOES work. The issue however is that the dialog box is not very helpful in telling you what login information you have to use (that is which username and password combination), and so I would like to replace it with a form. I had been thinking that this wasn't possible but I wanted to ask in order to find

Why doesn't the browser reuse the authorization headers after an authenticated XMLHttpRequest?

别等时光非礼了梦想. 提交于 2019-11-28 07:10:27
I'm developing Single Page App using Angular. The backend exposes REST services that require Basic authentication. Getting index.html or any of the scripts does not require authentication. I have an odd situation where one of my view has a <img> where the src is the url of a REST API that requires authentication. The <img> is processed by the browser and I have no chance to set the authorization header for GET request it makes. That causes the browser to prompt for credentials. I attempted to fix this by doing this: Leave img src empty in the source At "document ready", make an XMLHttpRequest

setRequestHeader does not work in JSONP using jQuery

强颜欢笑 提交于 2019-11-28 06:47:00
问题 I am building an iPhone app using jQuery Mobile, jQuery 1.7.2, and PhoneGap trying to get a JSONP from ASP.NET RESTful web service using this code, problem that I need to authenticate first and get a token, then send it back again. here is my function: var setToken = function () { var serverToken = ''; $.support.cors = true; jQuery('body').ajaxSend(function (evt, xhr) { xhr.setRequestHeader("Authorization", "Basic " + $.base64.encode(username + ":" + password)); xhr.setRequestHeader('X-Accept

Spring boot basic authentication

荒凉一梦 提交于 2019-11-28 06:08:11
问题 I'm using spring boot security to help me to make authentication... <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> @Configuration @EnableWebSecurity public class SpringSecurityConfig extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity http) throws Exception { http .cors().and().csrf().disable().authorizeRequests() .anyRequest().authenticated().and().httpBasic(); } } I have a rest