basic-authentication

Basic Authentication with jQuery.ajax request and jsonp

流过昼夜 提交于 2019-12-12 09:34:18
问题 I have some local html/js files with which I'd like to invoke some remote servers via https and eventually use Basic Authentication for the request. I am encountering two problems. First is that if I don't specify 'jsonp' for the dataType, jQuery.ajax() request returns the error: Access to restricted URI denied code: 1012 Are my requests considered cross-domain because my main work file is stored locally, but retrieving data from a server elsewhere? So fine, I update the call so it now looks

Logoff button IIS6 ASP.NET Basic Authentication

不想你离开。 提交于 2019-12-12 08:15:32
问题 I have a requirement for an explicit logout button for users in a ASP.NET web app. I am using IIS6 with Basic Authentication (SSL). I can redirect to another web page but the browser keeps the session alive. I have googled around and found a way to do it by enabling an active x control to communicate with IIS and kill the session. I am in a restricted environment that does not allow forms authentication and active x controls are not forbidden as well. Has anyone else had this requirement and

Can't authenticate user in laravel

不羁的心 提交于 2019-12-12 08:01:14
问题 $userdata = array( 'email' => Input::get('email'), 'password' => Input::get('password') ); if (Auth::attempt($userdata)) { echo 'SUCCESS!'; } else { return Redirect::to('login'); } when i run the application from browser i got this error : Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Auth\UserInterface, instance of User given, called in /home/srtpl17/Sites/yatin.sr/vendor/laravel/framework/src/Illuminate/Auth/Guard.php on

HttpClientErrorException: 401 Unauthorized basic authentication

不想你离开。 提交于 2019-12-12 06:58:39
问题 Im trying to get the url with basic authentication. I set the user/password as given below. The same credential is working in postman. String RELATIVE_IDENTITY_URL = "http://my_url/api/core/v3/people/email/abc@example.com"; RestTemplate restTemplate; Credentials credentials; //1. Set credentials credentials = new UsernamePasswordCredentials("admin", "admin"); CredentialsProvider credsProvider = new BasicCredentialsProvider(); credsProvider.setCredentials( AuthScope.ANY, credentials); //2.

Private docker registry with self signed TLS certificates not accepting valid basic authorization credentials

有些话、适合烂在心里 提交于 2019-12-12 06:50:21
问题 I have deployed a private docker registry (registry version 2.7) using Ansible (code given below). Followed official link https://docs.docker.com/registry/deploying/. registry: restart: always image: registry:2 ports: - 5000:5000 environment: REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt REGISTRY_HTTP_TLS_KEY: /certs/domain.key REGISTRY_AUTH: htpasswd REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm volumes: - /path/data:/var/lib/registry - /path

Restify static webserver stops working after enabling HTTP basic authentication

徘徊边缘 提交于 2019-12-12 06:05:31
问题 I have a working node.js restify server configured to work as a static webserver. Here is the relevant code; var server = restify.createServer({ name: 'myapp', version: '1.0.0' }); var static_webserver = function (app) { app.get(/.*/, restify.serveStatic({ 'directory': 'static', //static html files stored in ../static folder 'default': 'index.html' })); } //var static_server = function (app) static_webserver(server); After I enable HTTP Basic authentication to have better security for the

Authenticate Windows Authentication using Javascript

不羁的心 提交于 2019-12-12 02:22:50
问题 I have to transfer my client from one website to another website. This happens in client side. In this 2nd website, its using windows basic authentication system. So It popups the login window. I need to omit this Popup window and authenticate my client on 2nd website using javascript and then redirect him to 2nd website. There is no security issue even I put credentials in javascript file since this whole system is running in Intranet. So How to authenticate client on 2nd website ? I found

URLRequestDefaults.setLoginCredentialsForHost not setting the user & pwd in authorization header

二次信任 提交于 2019-12-12 01:34:24
问题 I want to access html files which are protected by basic authentication. I am trying to load this html page using htmlloader and sending the request by urlRequest. I am using URLRequestDefaults class to set the credentials but when I see the request being send in the fiddler I don't see any authorization header being set by this. Am I doing something wrong here. My code is below. URLRequestDefaults.authenticate = false; URLRequestDefaults.setLoginCredentialsForHost("www.xyz.com", "madhur",

Basic Authorization in OWASP ZAP

笑着哭i 提交于 2019-12-12 01:25:17
问题 I need to attack endpoints via OWASP ZAP tool (got 2.5.0 version). I tested endpoints via Postman. I`ve got Authorization with Type: Basic Auth, Username:exampleUserName, Password: examplePass. Please could you give me any hints, how to set up Basic Auth in OWASP ZAP please? I set up User for my Context. What esle is needed? Found solution: 1) Control Panel -> Internet Options -> Connections ->LAN Settings -> check "Use a proxy for etc." -> click OK 2) Send request via Postman with Basic Auth

HTTP-Authentication: how to quickly test client software through BASIC and DIGEST?

巧了我就是萌 提交于 2019-12-11 23:00:17
问题 I'm developping a Java software that should make requests towards URLs over HTTP. Some of these URLs will need HTTP authentication through DIGEST or BASIC . My client software will only contact these URLs, and if HTTP response is HTTP_OK(200), it will write output into a file. Q1 : I would like to know what is the quickest and easiest way to test the HTTP authentication DIGEST and BASIC from my client side? Q2 : Have I to install this kind of server or some "test servers" already exist on the