Questions tagged [basic-authentication]

Basic authentication is a method for a web browser or other client program to provide a user name and password when making a request.

Basic authentication was introduced with RFC1945 (HTTP/1.0) and is historically the first mechanism for authenticating at the HTTP layer level. Relying on base64 encoding, it is considered from the beginning as weak and unsecure, but it has a legitimate use on trusted connections (either on encrypted tunnels such as SSL, or unencrypted on a closed network).

Mechanism description :

When challenged by an HTTP server sending a WWW-Authenticate header with a realm challenge, the HTTP client must send a new request including an Authorization header containing the user's credentials encoded in base64.

The user credentials can be stored on the HTTP server itself, or on a remote system such as LDAP.

3320 questions
1
vote
1 answer

Can I override IIS Windows auth with Basic auth for a specific app in ASP.NET?

We've built an internal ODATA API that is hosted on IIS. It's been up and running for some time and everything works as expected. Now, I have a specific application (Tableau Desktop) that needs to connect to some of the ODATA API endpoints. Tableau…
1
vote
0 answers

Is it ok to add routes in an Express middleware?

I am building a small authentication middleware (because I want to!) but to work the way I wanted I found I was adding routes dynamically to the app, both for the POST back of the username/password as well as the GET for the authentication page…
nic ferrier
  • 1,573
  • 13
  • 14
1
vote
2 answers

Getting blank entry in database

Here is my code public class MainActivity extends AppCompatActivity { EditText etFirstname, etLastname, etEmailPhone, etPassword, etTelephone, etConfirm; Button btnRegister; RequestQueue requestQueue; @Override protected void…
Karan Israni
  • 107
  • 10
1
vote
1 answer

HTTP Basic Authentication in AngularJS

I am trying to call an API in AngularJS. API has HTTP Basic Authentication with username = admin and password = admin123 This is how I am calling the API, $http.get('https://example.com', { headers: {'Authorization': 'Basic…
Dinesh Ahuja
  • 925
  • 3
  • 15
  • 29
1
vote
1 answer

Enable Basic Auth in Kubernetes

I have minikube installation on my machine for some testing that requires Basic Auth, How can I enable it for all services I'll create in future?
kagarlickij
  • 7,327
  • 10
  • 36
  • 71
1
vote
1 answer

WCF Client with both Basic and Client Certificate Authentication

I am trying to integrate with a Web Service end point which require Basic and Client Certificate for authentication using WCF. I tried below different setting based on suggestions online but still I am receiving "Could not establish secure channel…
1
vote
1 answer

PHP cannot authenticate with proxy even with "Proxy-Authorization: Basic"

I've been having a lot of trouble connecting a network proxy. I've already tried several setups, but none of them have worked. The closest one has returned a "HTTP/1.1 407 Proxy Authentication Required [Proxy-Authenticate]" error even though I've…
1
vote
2 answers

Basic Authentication returns 401 Client Error but works in postman

I have gone through number of similar posts related to firing GET requests with Basic Auth (eg: Python, HTTPS GET with basic authentication), still can't figure out the problem. I keep getting the error requests.exceptions.HTTPError: 401 Client…
madmatrix
  • 205
  • 1
  • 4
  • 12
1
vote
1 answer

How secure is using HTTP Basic Authentication to get JWT token?

I'm not too familiar with HTTP Basic Authentication or web authentication in general so I would like some help in determining how secure my planned method for providing authentication for my app would be. I plan on making an Angular app with a PHP…
Jacob
  • 439
  • 6
  • 19
1
vote
2 answers

HTTP Basic Authentication GET request in AngularJS

I have one GET endpoint. It has HTTP Basic Authentication enabled. I want to create a GET request to the given end point. https://example.com/api GET User Name :- admin Password :- admin My Code :- $scope.listData = function() { …
Dinesh Ahuja
  • 925
  • 3
  • 15
  • 29
1
vote
1 answer

How to Create login and logout using Vapor (Basic Authentication)

I want to create login and logout methods and routes. I've done already basic authentication but now I'm stuck how to continue. How should I do that, should I use sessions? I'm using Vapor 3, Swift 4 and PostgreSQL and followed this tutorial…
anniina
  • 199
  • 1
  • 11
1
vote
0 answers

Meteor default http auth

I have a meteor app which makes HTTP calls to some server with basic auth. Now I want to use a modifier (axios provides interceptors which can modify the requests before sending them) such that on the basis of url, I should be able to add…
Jibin Mathews
  • 606
  • 4
  • 13
1
vote
1 answer

How to make user data private so only user who owns/created data can see it?

Can somebody tell me what I need to use to make user data private that only authenticated user can see their own data. What should I implement to my code ? I have already basic authentication and I have authorized users but the problem is that all…
anniina
  • 199
  • 1
  • 11
1
vote
3 answers

How to add an authorization header to a DOM form element?

I am trying to upload a file to a server, and have my DOM element setup as such: _uploadForm = document.createElement("form"); _uploadForm.method = "POST"; _uploadForm.action = "#"; if(_isBrowser.IE) …
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
1
vote
2 answers

How to grant access to a folder after authentication in nodejs with express?

I am new to nodejs and I have been looking for a solution quite a while now and none solves my specific problem unfortunately. Or at least I just don't get it. In my nodejs project I am using a public folder where all my html and js files are…
AlgoDan
  • 71
  • 3
  • 11