• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Passing Basic Authentication Variables

New Here ,
Feb 17, 2007 Feb 17, 2007

Copy link to clipboard

Copied

I am trying to redirect the user from one of our servers to another that user basic authentication. Can anyone give me guidance on how I can pass the authentication header to the redirected page so I don't have to have the user login again when redirected to that server? I already have the users name and password and can successfully use CFHTTP to get the authenticated page on the other server. But how do I redirect them there now without having the basic-authentication login box pop up again?

Thank you!

-Alex
TOPICS
Advanced techniques

Views

326

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 20, 2007 Feb 20, 2007

Copy link to clipboard

Copied

>I am trying to redirect the user from one of our servers to another that
>user
> basic authentication. Can anyone give me guidance on how I can pass the
> authentication header to the redirected page so I don't have to have the
> user
> login again when redirected to that server? I already have the users name
> and
> password and can successfully use CFHTTP to get the authenticated page on
> the
> other server. But how do I redirect them there now without having the
> basic-authentication login box pop up again?

The easiest way I can think of is to create a page that takes the
information and places it in a form with the action set to the page that
processes the login on the other server. Then use some js to "auto-submit"
the form on page load.


--
Bryan Ashcraft (remove brain to reply)
Web Application Developer
Wright Medical Technology, Inc.
------------------------------------------------------------------
Macromedia Certified Dreamweaver Developer
Adobe Community Expert (DW) :: http://www.adobe.com/communities/experts/


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Feb 21, 2007 Feb 21, 2007

Copy link to clipboard

Copied

LATEST
Bash's idea is the way to go - The problem with using CFHTTP is it doesn't set the CF session cookie on the client's machine, which is what the other server would use to determine what session to associate the user with. No session = no login. Sending the data via a hidden form, however, would work since you are basically just redirecting the client to the other server and letting the other server validate as usual.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation