Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8903691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:55:58+00:00 2026-06-15T01:55:58+00:00

Is it possible to set the Basic Authentication username and password from a server

  • 0

Is it possible to set the Basic Authentication username and password from a server response?

I have a site http://www.example.com where you can log in with any given cookie auth system.

The site also has a app at a different url served by a different server, say http://www.example.com/other. The app served by the other url is not mainted by me and I dont want to try and edit it to add a password system.

I want to secure that directory with basic auth, and then have my main site set the basic auth when they visit http://www.example.com before going onto the other url.

Or is there a better way to do this?

*Edit More Info:

http://www.example.com is served by a flask app using mod_wsgi

http://www.example.com/other is a awstats (php) app served via Apache,

The flask app has a cookie based auth system, which I would like to extend to the awstats app.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T01:55:59+00:00Added an answer on June 15, 2026 at 1:55 am

    This is not possible if you actually want to hand the user off from one web app server to another, as the basic authentication credentials will always need to be provided by the client when connecting to the server in use.

    You could perhaps use cURL or similar to get content from the second server on behalf of the user and display it within the web application on the first server. Or you could configure your server as a proxy perhaps, but if you actually want the request to be fulfilled directly between the client and the second server, you are going to need to look into a different authentication mechanism – perhaps something like OAuth.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an intranet site with basic authentication. Is it possible to have just
Assume I have the following result set from a mysql DB call (basic example,
I've set up a basic html/php submission form where people can register for our
Really basic question. Learning Django and now working on development server with nginx set
I have a rather basic and general question about atomicity of UPDATE ... SET
Struggling with this one. I have set up a basic email/enquiry form for a
I just need to set up the very simplest possible pound server on Ubuntu,
Possible Duplicate: Can jQuery provide the tag name? Hi! This question is so basic
I have an application set up to where there are eighteen buttons. The basic
Is it possible to pass credentials using AJAX to a webserver that request www-authentication?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.