• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
HTTP Basic Authentication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HTTP Basic Authentication


  • Subject: HTTP Basic Authentication
  • From: "John Huss" <email@hidden>
  • Date: Thu, 9 Aug 2007 11:12:39 -0500

I'm trying to use the HTTP Basic Authentication to authenticate users.  I found this Stepwise article that got me started:
http://www.stepwise.com/Articles/Technical/BasicAuthentication.html

But after it prompts for the login and I fill it out I don't see this info being passed to my WO app.

In Application I have:

    public WOResponse dispatchRequest(WORequest aRequest) {

        String encodedAuth = aRequest.headerForKey("authorization");
       
        if (encodedAuth != null) {
           
            Application.log.debug( "auth: " + encodedAuth );
            NSArray loginAndPasswd = this.decodeAuthorization(encodedAuth);
            String user = (String)loginAndPasswd.objectAtIndex( 0 );
            String password = (String)loginAndPasswd.objectAtIndex( 1 );
            Application.log.debug( "user: " + user + ", pass: " + password );
     }

encodedAuth is always null.  Any help is appreciated.

Thanks,
John
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: HTTP Basic Authentication
      • From: "John Huss" <email@hidden>
  • Prev by Date: Re: How to include javascripts
  • Next by Date: Re: Saving data from WOFileUpload in a sub-component
  • Previous by thread: Need help understanding XML handling
  • Next by thread: Re: HTTP Basic Authentication
  • Index(es):
    • Date
    • Thread