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
Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Migration from Basic Authentication to OAuth2.0 Authentication in RestTemplate

I have an existing application using RestTemplate Basic Authentication. It needs to be migrated to RestTemplate OAuth2.0 with minimal regressions. Is there any existing example in Java? Did some ...
1 vote
0 answers
25 views

Serving specific templates for different users

I wish to set up my deployed panel application for bunch of users who would have restricted access to the app. This is a sample code for it: import panel as pn pn.extension() bal = pn.pane.Markdown(&...
0 votes
1 answer
47 views

Self-hosted docker-registry does not request authentication at root domain, i.e. registry.mydomain.com

Along with some node.js apps, I have a self-hosted docker registry served by ubuntu, nginx-proxy, and acme-companion. Basic auth for the registry is setup using htpasswd. If I try to navigate to the ...
0 votes
0 answers
31 views

LinkedIn-SignIn API (get_profile() not working)

This is my code and I'm getting the following error: AttributeError: 'HTTPError' object has no attribute 'message' def profile_details(result): token = result.access_token exp_time = result....
10 votes
3 answers
9k views

How to send username:password to unittest's app.get() request?

This is part of my unit test in Flask-RESTful. self.app = application.app.test_client() rv = self.app.get('api/v1.0/{0}'.format(ios_sync_timestamp)) eq_(rv.status_code,200) Within the command line I ...
0 votes
0 answers
75 views

Basic proxy-authorization header for HTTPS URLs does not get passed in the header in jdk 1.8

I am trying to connect to a HTTPS URL from my java program through a proxy. The proxy server is also created by me using jetty library which runs in a different machine. In my proxy server I need to ...
5 votes
1 answer
9k views

Built-in way to do Basic Authentication with WCF REST service?

I am using Basic Authentication in my WCF service. And also using ASP Membership provider for authentication. Web.Config: For REST service: <webHttpBinding> <binding name="...
0 votes
1 answer
42 views

Blazor .NET 8.0 ApiController called via HttpGet returns redirect to login html instead of using username and password in header?

I have created a Blazor.Net 8.0 Server Side App. I included some ApiController classed that require Authorization. However, when I try and call those ApiControllers via Postman (simple HttpGet) and I ...
-2 votes
2 answers
186 views

requestMatchers("/").permitAll() not working. It asks for authentication despite permitAll()

By doing requestMatchers("/").permitAll() when I go to the url "localhost:8080/" or "localhost:8080" it still asks for authentication. But I did requestMatchers("/*&...
0 votes
0 answers
37 views

Restsharp 110.2 returns 401 with Basic Authentication

I'm trying to figure out how to do a very simple GET call with RestSharp (v.110.2, the latest one by now) using Basic Authentication. With Postman, everything is ok. This is how I am creating the ...
0 votes
2 answers
1k views

How enable digest or basic auth in IIS Express and set a user/password?

I'm on Windows 2012 R2 and have IIS Express on it. How enable digest or basic auth in IIS Express and where set the username/password?
0 votes
1 answer
288 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 ...
1 vote
2 answers
2k views

WSO2 API Manager missing authorization header

I have a REST API that does authentication using Basic Auth. I added this API to WSO2 API manager and got production urls for that API. Basically I need API manager to view statistics of API usage. I ...
0 votes
2 answers
697 views

React Axios Basic Authentication, how to prevent pop up dialog box from showing

I have implemented an API with Basic Authentication When I provide the correct username and password to the authentication, it works fine, However, the problem is when i provide the wrong username / ...
1 vote
3 answers
4k views

Nestjs Authentication Project: "statusCode": 401, "message": "Unauthorized"

I am learning NestJS. I tried to build a basic authentication project using NestJS and passport-local. But I got the error of "statusCode": 401,"message": "Unauthorized". ...
0 votes
0 answers
18 views

Tomcat Basic Authentication for 1 Webapp only

I have Apache Tomcat8 running on a windows server and have multiple webapps deployed inside it. I am trying to add basic auth to just 1 webapp, so users can continue to use the other apps without ...
1 vote
1 answer
104 views

FastAPI - Supporting Either Basic Auth Or JWT Auth to Access Endpoint

Referencing this link: fastapi-supporting-multiple-authentication-dependencies I think this is the closest to what I need, but somehow I can’t get either of the dependency to work because fastapi is ...
8 votes
2 answers
851 views

Cross Authentication between two different Laravel application

Background The two application is developed in PHP Laravel web application. In the application, App 1 and App 2 are two difference Application and being managed by two different team. App 1 is use to ...
0 votes
1 answer
129 views

How do I store a 3rd party access token in a Microsoft Teams message extension application?

We have a Microsoft Teams message extension project which has a custom command for sign in: "commands": [ { "id": "SIGNIN", "type": "action&...
0 votes
0 answers
64 views

Basic authentication ssl and NTLM NET 5 API

How can I use basic authentication with ssl and NTLM at the same time in a NET 5 API? The background of the question is the following: we are using a web UI which authenticates with NTLM (this should ...
1 vote
0 answers
202 views

How can I get TOTP into my code (python -post request) and add a hash function

so I'm working on this challenge, and I'm having some difficulties. I finished the first two parts of this 3 part challenge but I'm stumped with the 3rd part. I just started learning Python and have ...
0 votes
0 answers
52 views

API Powershell NSX-T

I would like to automate a new NAT in NSX-T, I'd like to automate the addition of a new nat from an API with Powershell. Except that I still have a "400". Here's an example of my Powershell ...
0 votes
1 answer
235 views

How to access Twilio media with HTTP Basic Auth

I'm trying to create a Python program that receives an image sent to my Twilio WhatsApp number and sends it to another number. from flask import Flask, request from twilio.rest import Client from ...
0 votes
0 answers
121 views

How add headers after basic auth, can't login, site doesn't loads

I used selenium 4, python, chrome. I can't login in to site which requires basic auth Hello! I can't login if i use https://log:[email protected] then site doesn't rendering and doesn't loads fully ...
1 vote
0 answers
343 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 ...
0 votes
0 answers
26 views

Failed to connect to confluent cloud kafka topic using Data Stream connector Kafka Source, which has schema registry protected by basic user auth

I am trying to connect to the topic in the confluent cloud which has a schema registry protected by basic auth. The topic has an Avro schema attached to it. I am adding this as I could not find an ...
7 votes
2 answers
5k views

PostAsJsonAsync C# - How to set headers correctly for POST request - BAD REQUEST 400

Hello to everyone out there. I am having this next problem. I am trying to do a POST request but when I am compiling and executing it with the debugger of Visual Studio Code, I am getting an error of ...
1 vote
1 answer
290 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,...
0 votes
1 answer
29 views

how to pass dynamic variable in basic authentication in soa 12c?

Username and Password in received in body from source xml. <UsernameToken> <Username>Dtest</Username> <Password>test@123</Password> </UsernameToken> I have stored ...
160 votes
2 answers
99k views

Web API Authentication Basic vs Bearer

I have created JWT based Authentication in my Web API application. I am not able to figure out the difference between Basic Token Bearer Token Can someone please help me?
0 votes
1 answer
419 views

using one feign client to call multiple endpoints with different authentication

I am trying to use same feign client to call/POST different endpoints (endpoint1, endpoint 2 etc) with below (payload structure is same. One can assume that number of endpoint would continue to remain ...
0 votes
0 answers
816 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,...
3 votes
2 answers
1k views

CoreWCF Basic Authentication - .NET 6

I am writing a CoreWCF PoC and I need to use HTTPS, BasicHttpBinding and Basic Authentication. It all worked fine until the point when I tried to activate Basic Authentication. So the code below with ...
304 votes
12 answers
660k views

How do I make a request using HTTP basic authentication with PHP curl?

I'm building a REST web service client in PHP and at the moment I'm using curl to make requests to the service. How do I use curl to make authenticated (http basic) requests? Do I have to add the ...
1 vote
0 answers
130 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 ...
0 votes
2 answers
632 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, ...
2 votes
0 answers
416 views

How do I apply basic authentication to a Google Maps API getTileUrl request in JavaScript?

When I call my external tileserver, it requires basic authentication, but there appears to be no way to add this. We are using the latest production version of Google Maps API. I call up the tile as ...
0 votes
2 answers
940 views

How to persist authentication after reload using react auth kit

I am new to the concept of authentications in apps, especially using tokens. I found the react-auth-kit library to help me do the authentication. I have a simple login using a username and a password ...
1 vote
2 answers
2k views

Excluding a specific URL from HTTP Basic Auth - mod_rewrite causing problems

We have "HTTP Basic Auth" on a certain subdomain of ours, but would like to allow everything to access a specific URL on that subdomain without authenticating (for a 3rd party hitting our ...
0 votes
0 answers
274 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 ...
0 votes
2 answers
161 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 ...
2 votes
1 answer
531 views

How do I use basic authentication on AWS OpenSearch with SAML enabled

I have a new OpenSearch instance with SAML enabled. I also have the internal user database and basic auth enabled. My users can log in with SAML as expected - all good. But how do my lambdas ...
22 votes
6 answers
114k views

How can I use Basic HTTP Authentication in PHP?

I'm trying to use Basic HTTP Authentication and followed the example on the PHP manual page. But it doesn't work for me. The variable $_SERVER['PHP_AUTH_USER'] doesn't seem to be set. When a user try ...
1 vote
1 answer
4k views

FastAPI accepting a POST with BasicAuth, Headers and Body?

So relatively new to FastAPI, and I have a small project I am trying to perform. Been through the examples at https://fastapi.tiangolo.com/. and did get some of what I am posting but not all. My Post ...
0 votes
0 answers
72 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 ...
4 votes
2 answers
4k views

Custom UserNamePasswordValidator not called

I am trying to set up a WCF webservice with BasicHttpBinding and authentication using username/password. I made custom authentication class. However, it is never called (verified by debugging). This ...
1 vote
1 answer
239 views

Using Postman to test KOHA RestAPI but keep getting authentication failure

I have a problem working with Postman and Koha RestAPI to display desired input. I want to try GET request on Postman using this URL as endpoint: https://{KOHADomain}/api/v1/patrons?userid={userid}. ...
3 votes
2 answers
2k views

Prevent popup in Firefox if username/password are in URL

If you have a site protected with Basic authentication, you can automatically login if you add the username and password to the url http://foo:bar@localhost However, in Firefox, you will still get a ...
2 votes
2 answers
2k views

Spring Security 6 configuration with multiple security configs

I'm trying to setup my Spring Boot 3.0 / Spring Security 6 app with multiple security configs. only /oauth/token should use/allow/enforce basic auth all other endpoints will use/allow/enforce bearer ...
-1 votes
1 answer
176 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 ...

1
2
3 4 5
67