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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

How to do basic auth from frontend to backend and make browser remember the Authorization headers

I have a backend written in Spring boot. The authentication type is basic auth. I have no problems authenticating with the backend. If doing it from chrome, I get a basic auth dialog, I fill in my ...
Viktor Eriksson's user avatar
0 votes
0 answers
92 views

How to decode the token of a Basic Auth request

I have this code: #[get("/devices")] async fn devices(req: HttpRequest) -> Result<impl Responder, Error> { let devices_data = vec![ Device { id_device: 123, speed: 65.4,...
joegsuero's user avatar
1 vote
0 answers
27 views

How do I embed Keycloak OIDC in my Web App

I really hope someone out there can help me :) I am working on a Backend Server for an Uni-Project. Its basically done but now a friend of mine told me, that I can use our Login-Data to implement a ...
panderu's user avatar
  • 11
0 votes
1 answer
33 views

Why isn't Flutterflow not connecting with Supabase when I add a user?

I've created a new project in Supabase and created 2 tables with RLS enabled and policies that give all access to authenticated user and only uses email as the authentication provider. All email ...
Elliot's user avatar
  • 509
-1 votes
0 answers
26 views

Getting 403 Forbidden for HTTPS Post request that requires Basic Auth in Rest Assured

I'm getting 403 forbidden error when trying to send https Post request that requires basic auth. The request is running fine on Postman but not using Rest Assured. Below is the code. I'm passing ...
Poo M's user avatar
  • 29
-1 votes
0 answers
13 views

Keycloak Basic Authentication Springboot 3 example

Hi does anyone have any example or documentation of how to setup spring-security + keycloak and have the authentication type be basic authentication instead of JWT or Oauth I have a legacy application ...
Senzo Malinga's user avatar
0 votes
2 answers
90 views

Cannot solve 403 Forbidden when using open API with spring boot and swagger and allowing other requests

I've looked in so many questions on here, but with no solutions that work for me. I have a service that I want to run open api and the swagger ui on. I have no problems running them without security, ...
mal's user avatar
  • 3,090
0 votes
0 answers
43 views

Basic Auth with Caddy Reverse Proxy Leads to 401 Errors on Specific Requests

I'm attempting to deploy a personal instance of the application found at https://github.com/cogentapps/chat-with-gpt on my VPS and wish to secure it using basic authentication. My Caddyfile is ...
romamik's user avatar
  • 595
0 votes
0 answers
29 views

WMS from password protected portal not loading in Leaflet on R - works fine in QGIS

After creating a few WMS, I have tried loading them in R to display them on a map but sadly the leaflet map doesn't show them - only the backdrop does. I had no issue displaying them in QGIS with ...
chlha's user avatar
  • 1
0 votes
2 answers
40 views

postman access token with custom domain

I am working on a testing a rest api in postman. Our Organization has a production domain (let's say ABC) and a demo domain (ABCM). The authentication for the rest api requires basic auth with userid ...
Balaji Pooruli's user avatar
0 votes
1 answer
46 views

Use wsdl with basic authentication .Net

I have a wsdl with basic auth protected, when i tried with postman or through browser its working.. to use it in my code, i have connected the service through visual code 2022 and proxy class has been ...
Zain Abbas's user avatar
0 votes
0 answers
25 views

error with Spring boot basic auth and react configuration [duplicate]

Wanted to access url based on user role in my app but there seems to be some problem i have addedd authorization token in react and ROLE_ADMIN is role stored in database Please help me to complete ...
Aryan's user avatar
  • 1
0 votes
0 answers
42 views

Kubernetes ingress-nginx basic-auth and jwt

I have an issue with ingress-nginx that I cannot solve. I have an ingress which allow connexion by IP whitelist or basic auth configured with the following annotation: nginx.ingress.kubernetes.io/...
momolechat's user avatar
0 votes
0 answers
68 views

Authenticate to a web server and download a file

I need help with authenticating to a web server to download a file. To follow my example, use this newly created trail account, that contains no personal data: https://www.finanzen.net/anmelden ...
jamacoe's user avatar
  • 519
0 votes
0 answers
37 views

kubernetes nginx ingress auth-realm annotation for basic-auth is not working

I'm just assuming at this point that the auth-realm annotation is the text that is being displayed in the window where you have to input username and password for basic authoriztation. The official ...
sh_cy's user avatar
  • 3
0 votes
0 answers
27 views

Keycloak with springboot 3 basic and bearer authentication [duplicate]

Currently, I am using KeycloakWebSecurityConfigurerAdapter which manages basic and bearer token authentication using keaycloak for spring-boot rest API now I am moving to Sprinboot 3, but seems ...
NRaj's user avatar
  • 121
1 vote
1 answer
53 views

Dartpad make request with basic auth

How to make a basic auth request against httpbin.org/basic-auth using http.get() works http.Request() fails with dartpad. This is my dartpad-demo-code What is working Using get() finally works ...
surfmuggle's user avatar
  • 5,579
0 votes
0 answers
81 views

InfluxDB2, HTTP Basic Authentication to /api/v2 endpoints

Influx Version: 2.7 OS: RHEL9 when attempting to make a query via HTTP to influx, the below works; curl -i -X POST https://<hostname>:8086/query?org=<redacted> -H 'Content-Type: ...
Ashaw's user avatar
  • 27
0 votes
0 answers
45 views

PHP Basic Auth in a If that is false is executed

Basically my main goal is to add a Basic Auth for every url except the ones that starts with "/donation" because i need the bank to reach us at anytime during the dev. I tried a lot of thing ...
Leoche's user avatar
  • 11
1 vote
1 answer
31 views

Is it safe to inject Authentication State Provider in MainLayout since it is a shared or public folder?

I have two public layout which is LoginLayout and MainLayout. My login layout is for my login page and the user info was stored in my claimsprincipal and when the user successfully logged, I displayed ...
Cheche Acebido's user avatar
0 votes
0 answers
26 views

Can't buil http request for WebDriver

I have tried plenty of codes to get through basic auth. via a C sharp code for WebDriver, but I am still unable to get through. The only real and possible way was by sending a string with credentials ...
Stack Dafaq's user avatar
-1 votes
1 answer
647 views

Absolute simplest way to limit access to a Next.js route

I have two pages and two API routes in my Next.js project which I would like to limit access to. This is a very low-stakes project where complexity is a big downside, so my current solution is to put ...
Nick K9's user avatar
  • 4,028
1 vote
1 answer
189 views

Securing endpoint with basic auth and additional conditions in springboot 3

I want to secure one endpoint with basic auth and allow requests only from specific IP addresses. Filter for basic auth: SecurityFilterChain basicAuthSecurityFilterChain(HttpSecurity http) throws ...
Yakimget's user avatar
0 votes
1 answer
73 views

Quarkus security-jpa with custom PasswordProvider

I'm trying to get basic auth with jakarta persistence to work with a quarkus REST service. I followed the instructions on https://quarkus.io/guides/security-basic-authentication-tutorial but get stuck ...
Christian Kölle's user avatar
0 votes
1 answer
100 views

Ktor client - Basic Auth does not work from install(), must be added to each request?

I have a Ktor client requesting from a server with Basic Auth. When I install() the Basic Auth as per the docs, it does not work - I get back HTTP 401. val response1 = HttpClient(Java.create()) { ...
Ondra Žižka's user avatar
0 votes
0 answers
57 views

Request to api with HTTP basic auth is status pending until I fill in the browser popup or cancel it

I have a angular website that accesses a api url with HTTP basic auth configured (asp.net core with .net 6). The thing is that the browser popup shows up immediately (because i didnt send credentials) ...
Estee Al's user avatar
1 vote
2 answers
256 views

Spring with both oauth2Login and Basic authentication

currently I am trying to add OAuth 2.0 in my Vaadin Application that will work also with my login form. I read this documentation on adding OAuth for Google. Firstly, I added required dependency <...
AleXeNoN's user avatar
1 vote
1 answer
82 views

How to construct an Authorization header that is base64 encoded?

I am building a web application using using CTM (Call Tracking Metrics) API in PHP-cURL language. To authorize with the API they use Basic Authentication method to construct an Authorization header ...
God Uncle's user avatar
1 vote
1 answer
87 views

Spring security - check authentication only in 1 endpoint

I have to following configuration: @AllArgsConstructor @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { private ActuatorProperties ...
Oskar's user avatar
  • 424
0 votes
1 answer
203 views

Creating and opening a URL to log in to Website via Basic Auth with Robot Framework/Selenium (Python)

I'm trying to login to a Basic Auth, using Robot Framework and Selenium (Python). The idea is to get the URL, where the Basic Auth popup appears, edit the URL (include the login data) in a custom ...
Peid Pideijsen's user avatar
0 votes
0 answers
67 views

How can I specify certificate along with username and password in postman?

I can run curl as below to see the server status. curl --cacert http_ca.crt -u elastic https://localhost:9200 Can anyone help me to do the same in Postman?
kta's user avatar
  • 19.5k
1 vote
1 answer
151 views

Is realm still a required parameter in Basic authentication scheme?

On one hand, RFC 7617 Section 2 clearly states that the parameter realm is REQUIRED in Basic authentication scheme: The Basic authentication scheme utilizes the Authentication Framework as follows. ...
A. Milto's user avatar
  • 2,273
0 votes
1 answer
26 views

comodo api authentication works in postman but not with google apps script

I'm trying to authenticate to comodo's platform (partner portal) via their API using their documentation. as my understanding goes I need to authenticate with a user/pass in order to get a bearer ...
Francisco Cortes's user avatar
0 votes
0 answers
64 views

Basic Http authentication using token

I am trying to extract data from an api using power query for further analysis but unfortunately its throwing an error saying we couldnt authenticate with credentials provided, please try again. The ...
User8985's user avatar
0 votes
1 answer
58 views

JS to handle failed basic authentication of request and don't show pop-up in browser for requiring credentials

I'm looking for a code snippet that handles an ajax fetch error with basic authentication and disallowing a browser to not show authentication pop-up. I was getting bearer token from the api endpoint ...
Gullible's user avatar
1 vote
0 answers
849 views

Next.js 13 app router middleware for basic auth and i18n

I'm trying to create a middleware function in Next.js 13 to achieve basic auth using nextjs-basic-auth-middleware and internationalization using i18next If I use the createNextAuthMiddleware function -...
Myrkytyn's user avatar
1 vote
0 answers
337 views

drf-spectacular swagger authentication

I'm digging google for 3 hours right now, and can't find solution for my problem. I moved in my project from drf-yasg to drf-spectacular because openapi +3.0 isn't supported in yasg. I want to have an ...
Lukas's user avatar
  • 51
0 votes
1 answer
91 views

Why 2 requests are sent from Java Apache HttpClient

I have created one HTTP Post request with Basic authentication using httpclient (org.apache.httpcomponents). CredentialsProvider provider = new BasicCredentialsProvider(); provider....
Rasel's user avatar
  • 830
0 votes
1 answer
136 views

Request url on my Slack app that is invoked on clicking a button requires basic auth

I have defined a request URL which gets triggerred whenever I click a button in my Slack channel.(** From the docs - Any interactions with shortcuts, modals, or interactive components (such as buttons,...
Chanakya Hosamani's user avatar
1 vote
1 answer
417 views

Spring boot 3 - High CPU usage on basicAuth

I have a java application build on spring boot 3 and I have a simple security configuration like this: @Configuration @EnableWebSecurity @EnableMethodSecurity public class SecurityConfig { ...
Gog1nA's user avatar
  • 376
0 votes
0 answers
23 views

Can a webserver basic auth be made GDPR/DSVGO conform

If your root (or any other path) of your domain is restricted with a basic auth using .htaccess file the user does not get real HTML without a successfull login. Username and password might be ...
Sebastian Barth's user avatar
0 votes
1 answer
43 views

Problem with handling 'basic authentication' modal in selenium automation

In one site, when I click a link it should open a login page. But, before loading the page it gives a popup that looks like an alert but in dev tools, it shows nothing. Also, the automation scripts ...
Tariful Islam Abir's user avatar
0 votes
0 answers
463 views

401 Error before being trying to login in browser form Spring Boot

When I try to open my localhost:8080 spring security basic auth application, I get a 401 Unauthorized error before I get the chance to authenticate using the spring form login. It works fine in ...
Splatted I0I's user avatar
0 votes
1 answer
46 views

Laravel API middleware: using Auth::onceBasic 2 times (conditions)

Currently I am creating a middleware for my Laravel project API. The middleware will do HTTP Stateless Basic Authentication. Using Auth::onceBasic(), I want to allow authentication using email or ...
Zaq28's user avatar
  • 1
0 votes
1 answer
212 views

Basic Auth working in postman but it doesn't work on Flutter with dio even its same

I have a Basic Auth token. In postman its working as expected but when i try same thing with same header its not working on flutter dio. Why its not working ? How can i fix it ? In Postman : But when ...
Ugurcan Ucar's user avatar
0 votes
0 answers
135 views

Iframe basic-authentication

I'm using an iframe in one of my webpages. The page i'm calling is protected witrh a static username and password. Example of the issue: Is there a way I can authenticate without promting the login ...
Volpe v2's user avatar
0 votes
0 answers
124 views

GET request to API with basic authentication works with browser but not in Postman - used to work earlier

I'm trying to perform a simple GET request to the SAP IntegrationContent API. Up until today it was working fine on Postman, but it has recently started to return the source code of an authentication ...
csilvano's user avatar
0 votes
1 answer
44 views

I registered a user, but can not authenticate

I registered a user and he is present in database, however when i try to login through postman(email password) for some reason database can not find the user. Here are my security configs: ...
Kai7's user avatar
  • 1
0 votes
1 answer
354 views

Encountering Issues with Prometheus Basic Auth

I am a beginner with Prometheus and recently encountered some issues while configuring Basic_Auth. I deployed a Prometheus instance with Basic_Auth locally. What's strange is that I am able to use the ...
user20268898's user avatar
0 votes
1 answer
338 views

Krakend Multiple Authorization Methods

I have an application that exposes a few endpoints which, for backward compatibility purposes, support both JWT and Basic Authorization methods. Recently we have decided to use KrakenD as the API ...
Sajad's user avatar
  • 492

1
2 3 4 5
67