[squeak-dev] https & woocommerce; basicAuth etc?

Ron Teitelbaum ron at usmedrec.com
Mon Oct 1 21:19:42 UTC 2018


Hi Tim,

Here are the basics:
https://en.wikipedia.org/wiki/Digest_access_authentication

What did you get back from on the 401?  Check headers on WebResponse.

Are you behind a proxy server?  Maybe Proxy-Authenticate.

All the best,

Ron

On Mon, Oct 1, 2018 at 4:30 PM tim Rowledge <tim at rowledge.org> wrote:

>
>
> > On 2018-10-01, at 1:01 PM, Chris Cunningham <cunningham.cb at gmail.com>
> wrote:
> >
> > Are you using WebClient?  It is actually documented int he help system,
> check it out, especially the Authentication section. It does basic and
> digest authentication, apparently.
>
> Sigh. I looked at the help, having noticed that webclient/server was one
> of the too few facilities with decent help some time ago. And I looked
> *right past* the bit I needed.
>
> Nurse! Bring me some new dried frog pills!
>
> More germanely, the webclient seems to want to do a request without any
> authorisation stuff, get back a '401' and retry with some authorisation -
> but from quickly debugging, WebClient>>#authenticate:from: is expecting a
> 'WWW-Authenticate' header section that simply isn't there. That would get
> used to choose the auth method. I haven't seen anything that makes me think
> I can force the woocommerce stuff to provide that header data. No idea if
> it is really a good scheme to rely upon it.
>
> I suspect I can make up a way to do a more direct use-auth-first-time
> approach that might be better when you know it has to have it. After my
> frog pills...
>
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: SFA: Seek Financial Assistance
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20181001/61136611/attachment.html>


More information about the Squeak-dev mailing list