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

Basic Authentication & Header Location

I am performing an HTTP request to populate an iframe by php. Basically, I don't know how to make the basic authentication in the same redirection. I send the authentication in the header but the page is always asking for credentials with the famous…
Wal Heredia
  • 401
  • 1
  • 6
  • 14
1
vote
0 answers

BASIC Auth Jersey REST API

I am trying to secure my REST API with BASIC authentication. I am doing this by defining roles within my web.xml and tomcat-users.xml like so: web.xml Jersey REST Service
colmulhall
  • 1,548
  • 3
  • 18
  • 33
1
vote
1 answer

Jira Rest Api Basic Auth Token - PowerShell - Building with secure strings

I've been trying to build out basic auth tokens using powershell user persistent variables where I store the password as a secure string. This is what I have so far: $PlainPassword = "atestpassword" $SecurePassword = $PlainPassword |…
1
vote
1 answer

Forming JSON for Basic Authentication for billPlz payment gateway api?

How to form the JSON for Basic Authentication for billPlz api? It is said in the API Reference of BillPlz that- "You authenticate to the Billplz API by providing your API Secret Keys in the request. You can get your API keys from your account’s…
1
vote
1 answer

Using bcrypt encoder with spring boot basic auth, springSecurityFilterChain throws NullPointerException

I want to use the bcrypt password encoder, as i understand it automatically hashes and salts the password. My code looks like this atm: @Configuration @EnableWebSecurity public class BasicAuthConfig extends WebSecurityConfigurerAdapter { @Bean …
1
vote
0 answers

Nodejs basic auth with https

I have a nodjs app running that uses basic auth with the password details in a file generated by htpasswd. This is working fine. What I'd like to do is run it over https. I can get it working with https fine, but can't seem to work out how to get…
mickwombat
  • 11
  • 4
1
vote
0 answers

How to make an OAuth Authentication from IP

I have a .NET Web Api. I want to consume from webs and Mobile Apps, but I don't want the user to sing in or create an acount. Can I make an authentication from IP or domain name or something similar? I tried to implement a Basic and Oauth…
1
vote
1 answer

Chrome remote debugging Basic Authentication

How can I do a basic authentication via chrome remote debugging? That is I have a chrome running in remote debug like this chrome.exe –remote-debugging-port=9222 then I use WebSocket4Net to comunicate with chrome. I would like to automate the basic…
1
vote
1 answer

Create session with BASIC authentication

I want to write a servlet with which I can create a new session. The servlet requires the user to authenticate with BASIC authentication and returns the standard session cookie (using HttpServletRequest#getSession(true)). However, if the client…
sithmein
  • 437
  • 3
  • 11
1
vote
0 answers

How to set up apache basic authentification with shiny server opensource?

I am trying to setup apache basic authentification to shiny server running on Cent OS 7 For the moment I figured out how to set up the authentification to basic html files floowing this…
user2486276
  • 135
  • 3
  • 8
1
vote
1 answer

HttpURLConnection - repeated request with basic authentication

My app needs to make a lot of requests to the same domain, for a REST API with basic authentication. The code below works, but it needs username and password every time. Is there a way to authenticate only once like in browsers? (I have the same…
1
vote
4 answers

Angular 4 + Java EE + Basic Auth + JAX-RS + Chrome throwing CORS issue

I am using Angular 4 , JAX-RS for rest services. Angular is deployed in tomcat server and JAX-RS rest services were deployed in Websphere 8.5 App server. I am trying to secure the rest services using Basic Auth. Here is web.xml part used for…
hari
  • 21
  • 5
1
vote
0 answers

Symfony4 - Basic Auth looping while using DB provider

I'm desperate : I'm using Symfony for years, and today I'm stuck on a basic stuff. As FOSUserBundle is not implemented for Sf4 yet, I decided to create a really basic User entity in DB to load user. But when I enter my username/password in the…
Pete_Gore
  • 594
  • 1
  • 5
  • 20
1
vote
1 answer

Issues with Nextcloud on Apache/Debian/PHP-FPM

I have currently two issues with a fresh debian-setup in context of Nextcloud on Apache. Nextcloud version: 12.0.4 Operating system: Debian 9.3.0 Apache version: 2.4.25 PHP version: PHP-FPM 7.0.27 On my Apache I generally use Basic Auth. So if you…
daily
  • 215
  • 1
  • 12
1
vote
1 answer

How to add basic auth using retrofit2?

I already search all around the places on internet how to add basic auth using retrofit2 but still no luck. I already implemented a simple login mechanism but basic auth must be use in order for successful login. My model public class ResObj { …
Nurdin
  • 23,382
  • 43
  • 130
  • 308
1 2 3
99
100