basic-authentication

WCF Binding with both transport and message security

你说的曾经没有我的故事 提交于 2019-12-10 20:59:31
问题 I'm working in a big project that makes extensive use of WCF for different kinds of communication. As a part of a new requirement, we need to communicate with a SOAP Web Service developed by a third party. Their service is developed with Java and has two security requirements: it needs BASIC authentication over transport and the message has to be signed (not encrypted) with a X509 certificate using the WS-Security (OASIS) standard for non-repudiation. The problem I have is that the bindings

Access Web Service with Basic authentication through a proxy with Windows (NTLM) authentication

我是研究僧i 提交于 2019-12-10 19:54:50
问题 I have a web service that uses basic authentication. I also have a Windows Forms application that uses the web service. When it starts up, the user is asked for credentials, which are then used when making any requests to the service. Problem is, the app is used by a client from within a corporate network. All their internet traffic is routed through a proxy that uses Windows authentication. I'm trying to configure my application to correctly use that proxy when making requests. So far I have

HttpListener with JWT and Basic auth: how to send WWW-Authenticate? (Self-Hosted)

江枫思渺然 提交于 2019-12-10 19:36:47
问题 I have a self-hosted REST app running cross platform on mono/.NET. The one problem is that HttpListener manages and blocks manual setting of the WWW-Authenticate header. Which is fine if you limit yourself to the built-in Basic, NTLM, etc authentication, or don't need authentication, but is a problem if you want to accept any other kind of tokens. I am using JWT tokens with a REST style interface, using Basic[1] auth for the initial authentication. In another part of the app, I am doing

python JIRA connection with proxy

狂风中的少年 提交于 2019-12-10 17:48:12
问题 I'm trying to connect via python-jira using a proxy: server = {"server": "https://ip:port/jira", 'proxies': {"http": "http://ip:port", "https": "http://ip:port"}, 'verify': False, 'stream': True} cls.jira_object = JIRA(options=server, basic_auth=(user, password), validate=True) Traceback error: tests\jira_test\ticket_test.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ build\bdist.win-amd64\egg\jira\client.py:217: in __init__ ??? build\bdist.win-amd64

Applet displays login dialog if basic authentication used

≡放荡痞女 提交于 2019-12-10 17:33:40
问题 I have a Java applet inserted on a webpage: applet = '<embed' + ' type="application/x-java-applet;version=1.6"' + ' pluginspage = "http://www.java.com/en/download/"' + ' width="0" height="0"' + ' style="position: absolute"' + ' archive="/plugins/MyApplet.jar"' + ' code="MyTestApplet.class"' + '>' appletContainer.innerHTML = applet; The server is using Basic authentication. When Chrome or Safari (or better say JVM) requests the MyApplet.jar file the 'Authentication Required' dialog is

Send BASIC auth by default, rather than wait for HTTP 401

痴心易碎 提交于 2019-12-10 15:36:10
问题 I have a web service that requires a BASIC authentication header to be present in the request, or the service will return an HTTP 401 (unauthorized). This works - when the challenge comes back, the browser (in this case, Chrome) pops up and asks for the credentials. They are then saved for future requests. My problem is that now two requests are being made on each subsequent request to the service - one without auth (which receives a 401), and then the browser immediately replies with the

No browser is sending Authorization info in header

孤人 提交于 2019-12-10 14:35:29
问题 I'm looking at this and this and it would appear 'easy' to send the credentials in the URL. For example: http://gooduser:secretpassword@www.example.com/webcallback?foo=bar This is all well and good but it doesnt work . I've turned fiddler on and for Chrome the Authorization header isnt sent. It appears to exhibit the same behaviour for other browsers (i've got a breakpoint on the server and no Authorize header turns up for Firefox,Safari or IE either) How to make it better? 回答1: Stumbled

How to pass over the HttpAuthentication into selenium webdriver

99封情书 提交于 2019-12-10 11:49:37
问题 In my python project, the login process is handled by the HttpBasicAuth handler. After getting the response I should load the main page via selenium. How it is supposed to be done? It has the baseurl. When the base url is loaded by python-selenium, the pop-up box asks for the username and password for authentication. Then it enters into main page. Here are the two steps: Step 1: Login (using HttpBasicAuth handler) The reason I am using the HttpBasicAuth handler is that when I open my url it

Laravel 4 Basic Auth custom error

倾然丶 夕夏残阳落幕 提交于 2019-12-10 11:44:45
问题 I'm using the 'HTTP Basic Authentication' feature of laravel. I want to customize the error message which is generated from laravel if the entered credentials are wrong. Is it possible to catch the 401 Error which is generated when HTTP Auth fails? Hope you can help me. Regards 回答1: Basic Auth Try to capture 401 error and return cusom view?! App::error(function($exception, $code) { switch ($code) { case 401: return Response::view('errors.403', array(), 401); case 403: return Response::view(

401 error when using [Authenticate] with BasicAuthProvider

大城市里の小女人 提交于 2019-12-10 10:16:47
问题 I'm having some trouble with authenticating with ServiceStack using the BasicAuthProvider. All works well when I authenticate using the provider route 'auth/myauth' but when I go to one of my other service DTOS that use the [Authenticate] attribute e.g. /hello, I always get a 401 Unauthorized error even when I always supply the basic authentication details in the 'Authorization' header using beforeSend with jQuery. Basically, I'm building an API for a mobile app that involves credential