Creating basic auth header manually

Discussion in 'Java' started by Steve, Jun 22, 2005.

  1. Steve

    Steve Guest

    To make a very long story short, I have a need of creating a basic auth
    header in a JSP (through code, not through normal browser-server
    interaction), and then moving on to another page which expects to see
    that authorization header.

    Building the header value, and setting it on the response object, have
    been no big deal. However, the second step of moving on the next page
    has been a pain. A basic response.sendRedirect() does not seem to pass
    the auth header along, and a Google search leads me to believe that a
    forward must be used rather than a redirect to accomplish what I'm
    wanting to do. However I've tried using a forward, both through a
    RequestDispatcher object as well as a <jsp:forward> directive, and this
    doesn't seem to be passing across the header value either.

    Is there something obvios that I'm missing here? Thanks in advance!
     
    Steve, Jun 22, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Q2hyaXMgTW9oYW4=?=

    Configuring Windows Auth & Forms Auth in Asp.Net

    =?Utf-8?B?Q2hyaXMgTW9oYW4=?=, Apr 28, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    764
    =?Utf-8?B?Q2hyaXMgTW9oYW4=?=
    Apr 28, 2004
  2. =?Utf-8?B?ZGhucml2ZXJzaWRl?=

    Windows Auth, but Forms Auth for one page?

    =?Utf-8?B?ZGhucml2ZXJzaWRl?=, Jan 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    614
    Elton Wang
    Jan 8, 2005
  3. Mark Chai
    Replies:
    1
    Views:
    757
    Christophe Vanfleteren
    Oct 1, 2003
  4. Replies:
    3
    Views:
    348
    Siddharta .
    Jun 12, 2007
  5. Steve
    Replies:
    0
    Views:
    171
    Steve
    Apr 22, 2008
Loading...

Share This Page