basic-authentication

C# WebClient HTTP Basic Authentication Failing 401 with Correct Credentials

£可爱£侵袭症+ 提交于 2019-12-08 07:44:42
问题 I'm trying to automate configuring a wireless router's SSID and Password via c# webclient. The router has no API that I know of. It's an unbranded chinese router. The web config seems to be the only option for configuration. It uses http-basic-authentication (you browse to the IP address of the router and get a generic dialog asking for username and password). I've used Wireshark to get the headers and form fields that the http-post requests use when I manually update the SSID and Password

Preemptive authentication with CustomBinding?

南楼画角 提交于 2019-12-08 06:15:21
问题 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);

How to set different web authentication mode for different database in Lotus Domino

て烟熏妆下的殇ゞ 提交于 2019-12-08 04:24:20
问题 Disclaimer: I'm not a Notes admin, I just wrote the application :), and I try to help our client to use it. We provide a simple database with one agent to accept and process HTTP POST messages from Internet. The Domino server where this database is going to be installed is configured for Single SignOn authentication for web access. Is there a way so set only our database to use different type of authentication - i.e. Basic Authentication, so we can hit it like this to POST messages to the

proxy http request with node

人盡茶涼 提交于 2019-12-08 02:19:59
问题 I have a nodeJs front end on one domain and a rest back end server on another domain. I would like to be able to perform ajax requests from the front to the back. So, i intend to use a reverse proxy for that, in order to bypass the same origin policy restriction. My back end Rest server will be secured with Basic auth or OAuth. I would like to know, if i use node-http-proxy if it is possible to send an Authorization header in the http request before proxying it, and how. Thanks a lot. 回答1:

How to prevent Basic Authentication form to popup

眉间皱痕 提交于 2019-12-08 01:29:56
问题 I have a application in Java, JSF that uses javascript to connect to a website that needs Basic authentication. The thing I want to accomplice is the exact same thing that happens when I type in username and password in the popupform. I have tried many different ways that I have seen on the topic, but none of them works. The strange thing is that the ajax calls return a respone, but then I get the windows security popup anyway. Do I need to cache it someway? For example the both of the codes

Basic Authentication for Grizzly Server

别说谁变了你拦得住时间么 提交于 2019-12-08 00:37:15
问题 I have implemented this example into my application: https-clientserver-grizzly Here is Server.java from that link: public class Server { private static HttpServer webServer; public static final URI BASE_URI = getBaseURI(); public static final String CONTENT = "JERSEY HTTPS EXAMPLE\n"; private static URI getBaseURI() { return UriBuilder.fromUri("https://localhost/").port(getPort(4463)).build(); } private static int getPort(int defaultPort) { String port = System.getProperty("jersey.test.port"

Django session authentication with Angular 2

最后都变了- 提交于 2019-12-08 00:23:34
问题 I've been looking all around for session based authentication with Angular 2. I'm building an application that has Django on backend and Angular 2 on the frontend. To keep the process simple I'm trying to implement Django session authentication. // Angular 2 authentication service import { Injectable } from "@angular/core"; import { Headers, Http, Response } from "@angular/http"; import "rxjs/add/operator/toPromise"; import 'rxjs/add/operator/map' import { AppSettings } from "../../app

outbound-gateway with Basic Authentication in spring-integration

我是研究僧i 提交于 2019-12-07 22:48:03
问题 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="

$_SERVER['PHP_AUTH_USER'] empty

落爺英雄遲暮 提交于 2019-12-07 20:28:46
问题 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?

Rails - authenticate_or_request_with_http_basic custom “access denied” message

霸气de小男生 提交于 2019-12-07 20:17:12
问题 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