unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "tenspd137 ." <dcday137@gmail.com>
To: Thomas Fitzsimmons <fitzsim@fitzsim.org>
Cc: 35969@debbugs.gnu.org
Subject: bug#35969: 26.2, Excorporate
Date: Thu, 30 May 2019 11:25:39 -0600	[thread overview]
Message-ID: <CAB=m8wLNB=pjWqGBCnXuXpDA=1UB4C0sDxuU23FZiwJNQDmxDA@mail.gmail.com> (raw)
In-Reply-To: <CAB=m8wJ8QDKuGb1HmpNVZ5y=iOR5bTg5yL=wTYRi9cpNS+Ryug@mail.gmail.com>

So, I don't know what this is indicative of, but if I try to use emacs
through a proxy and use the httpbin.org example, the result buffer
shows:

HTTP/1.1 401 UNAUTHORIZED
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Date: Thu, 30 May 2019 17:22:48 GMT
Referrer-Policy: no-referrer-when-downgrade
Server: nginx
WWW-Authenticate: Basic realm="Fake Realm"
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Content-Length: 0
Connection: Close

but then if I repeat the url-retrieve-synchrounously call

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Encoding: gzip
Content-Type: application/json
Date: Thu, 30 May 2019 17:23:59 GMT
Referrer-Policy: no-referrer-when-downgrade
Server: nginx
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Content-Length: 59
Connection: Close

{
  "authenticated": true,
  "user": "user"
}

So - it need two calls - one to authenticate and one to retrieve?
Thanks!
-C

On Thu, May 30, 2019 at 11:06 AM tenspd137 . <dcday137@gmail.com> wrote:
>
> Thomas-
>
> Here is the httpbin.org authentication test buffer (through emacs / proxy)
>
> HTTP/1.1 401 UNAUTHORIZED
> Access-Control-Allow-Credentials: true
> Access-Control-Allow-Origin: *
> Date: Thu, 30 May 2019 15:32:25 GMT
> Referrer-Policy: no-referrer-when-downgrade
> Server: nginx
> WWW-Authenticate: Basic realm="Fake Realm"
> X-Content-Type-Options: nosniff
> X-Frame-Options: DENY
> X-XSS-Protection: 1; mode=block
> Content-Length: 0
> Connection: Close
>
> and here is the failed excahnge.asmx buffer
>
> HTTP/1.1 401 Unauthorized
> Server: Microsoft-IIS/10.0
> request-id: fb0b957e-f55c-49b9-9fb5-fd9a58a5f31a
> X-WSSecurity-Enabled: True
> X-WSSecurity-For: Logon
> X-FederationTrustTokenIssuerUri: urn:federation:MicrosoftOnline
> X-WSSecurity-SymmetricKey-Enabled: True
> X-WSSecurity-X509Cert-Enabled: True
> X-OAuth-Enabled: True
> X-Powered-By: ASP.NET
> X-FEServer: SN6PR1501CA0010
> WWW-Authenticate: Basic Realm=""
> Date: Thu, 30 May 2019 15:36:43 GMT
> Connection: close
> Content-Length: 0
>
> and, as a bonus, the result of url-exchange.asmx from Emacs not using
> a proxy on the "other" lan using url-retrieve-synchronusly
>
> HTTP/1.1 401 Unauthorized
> Server: Microsoft-IIS/10.0
> request-id: 369ea2d9-8dce-408c-a38e-fb8035f98065
> X-WSSecurity-Enabled: True
> X-WSSecurity-For: Logon
> X-FederationTrustTokenIssuerUri: urn:federation:MicrosoftOnline
> X-WSSecurity-SymmetricKey-Enabled: True
> X-WSSecurity-X509Cert-Enabled: True
> X-OAuth-Enabled: True
> X-Powered-By: ASP.NET
> X-FEServer: SN4PR0201CA0037
> WWW-Authenticate: Basic Realm=""
> Date: Thu, 30 May 2019 16:40:48 GMT
> Content-Length: 0
>
> I tried to get logs from a successful exorporate useage, but the http
> result buffers appear to come and go, and if I try URL-DEBUG, a lot
> happens and eventually emacs on my laptop locks up, but if you want me
> to try anything specific or there is a way to look at things step by
> step, just let me know.
>
> Thanks!
>
> -C
>
>
>
> On Wed, May 29, 2019 at 4:10 PM tenspd137 . <dcday137@gmail.com> wrote:
> >
> > Yes - I will try to do it tomorrow morning.  Thanks again!
> >
> > -C
> >
> > On Wed, May 29, 2019 at 4:01 PM Thomas Fitzsimmons <fitzsim@fitzsim.org> wrote:
> > >
> > > Hi,
> > >
> > > "tenspd137 ." <dcday137@gmail.com> writes:
> > >
> > > > Sorry for questioning - but I don't think it is successful in the
> > > > basic authentication case - unless I am misreading some of the output.
> > >
> > > No problem; I quoted the "status=200" line which I think indicates that
> > > it was successful.  But url creates another buffer and puts the
> > > authentication response in there; to be sure, you'd need to check that.
> > > I think for httpbin.org, it will contain the headers and then:
> > >
> > > {
> > >   "authenticated": true,
> > >   "user": "user"
> > > }
> > >
> > > just like your wget experiment.
> > >
> > > For your prior test run, the secondary buffer is mentioned in
> > > *URL-DEBUG* here:
> > >
> > > > retrieval -> Synchronous fetching done (#<buffer  *http httpbin.org:443*-54346>)
> > >                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > >
> > > Can you redo the httpbin.org authentication test within Emacs, through
> > > the proxies, and paste the contents of that secondary/response buffer?
> > >
> > > It would be helpful if you could paste the redacted secondary/response
> > > buffer contents for the failed Exchange authentication too.
> > >
> > > > As for testing authentication against no proxy - yes, I can.  In fact,
> > > > I actually have.  It works.
> > >
> > > [...]
> > >
> > > OK, good to know, thanks.  The use case makes sense.
> > >
> > > Thanks,
> > > Thomas





  reply	other threads:[~2019-05-30 17:25 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-28 21:25 bug#35969: 26.2, Excorporate tenspd137 .
2019-05-29  1:04 ` Thomas Fitzsimmons
2019-05-29 16:17   ` tenspd137 .
2019-05-29 17:02     ` Thomas Fitzsimmons
2019-05-29 18:13       ` tenspd137 .
2019-05-29 20:53         ` Thomas Fitzsimmons
2019-05-29 21:44           ` tenspd137 .
2019-05-29 22:01             ` Thomas Fitzsimmons
2019-05-29 22:10               ` tenspd137 .
2019-05-30 17:06                 ` tenspd137 .
2019-05-30 17:25                   ` tenspd137 . [this message]
     [not found]                     ` <CAB=m8wL0JNK+dQv68nddHuJ8yvHdsV9ehTaGJ00NK4spe1sQAQ@mail.gmail.com>
     [not found]                       ` <m3blze4872.fsf@fitzsim.org>
     [not found]                         ` <CAB=m8wJfGveEzVm46j2MLGFupdv2Lwn3VwL02_RAdirzDJKcSg@mail.gmail.com>
     [not found]                           ` <CAB=m8wKv0dWgRctuc+bWyocNOPFertCt9K4SOB2Q_W5cPU_tTw@mail.gmail.com>
     [not found]                             ` <m3tvd5p8zt.fsf@fitzsim.org>
     [not found]                               ` <CAB=m8wLKtY_38m3mJ18_qhacRUNVCU-4GEFMAKXAdbc1Xamnxg@mail.gmail.com>
     [not found]                                 ` <m3d0jtp0c7.fsf@fitzsim.org>
     [not found]                                   ` <CAB=m8wL6KqATgAddiC3H7kzLSnbe5xTeAWrq5eqvr6n6aU-OKw@mail.gmail.com>
     [not found]                                     ` <m34l55oywz.fsf@fitzsim.org>
     [not found]                                       ` <CAB=m8wKHstZNzTZxj4m-UuOg9LNeu4LRrhysOaaQrSd6z1DE0A@mail.gmail.com>
     [not found]                                         ` <m3woi1nfxw.fsf@fitzsim.org>
2019-06-14 20:13                                           ` tenspd137 .
2019-06-14 20:16                                             ` tenspd137 .
2019-06-14 20:22                                               ` Noam Postavsky
2019-06-14 20:32                                                 ` tenspd137 .
2019-06-14 20:45                                                   ` tenspd137 .
2019-06-14 21:02                                             ` Thomas Fitzsimmons
2019-06-14 21:48                                               ` tenspd137 .
2019-06-14 22:07                                                 ` tenspd137 .
2019-06-14 23:07                                                   ` tenspd137 .
2019-06-14 23:14                                                     ` tenspd137 .
2019-06-15  0:14                                                       ` Thomas Fitzsimmons
2019-06-15  0:47                                                         ` tenspd137 .
2019-06-15  0:36                                                       ` Thomas Fitzsimmons
2019-06-15  7:41                                                         ` Andreas Schwab
2019-06-17 16:31                                                           ` tenspd137 .
2019-06-17 22:08                                                             ` Thomas Fitzsimmons
2019-06-18 16:34                                                               ` tenspd137 .
2019-06-19  4:26                                                                 ` Thomas Fitzsimmons
2019-06-20 20:34                                                                   ` tenspd137 .
2019-07-09 21:52                                                                     ` Thomas Fitzsimmons
2019-07-09 22:09                                                                       ` Collin Day
2019-07-09 22:53                                                                         ` Collin Day
2019-07-10  0:08                                                                           ` Thomas Fitzsimmons
2019-07-10  0:11                                                                             ` Thomas Fitzsimmons
2019-07-10 15:35                                                                               ` Collin Day
2019-07-13 14:37                                                                           ` Thomas Fitzsimmons
2019-07-31 21:07                                                           ` Thomas Fitzsimmons
2019-07-31 21:20                                                             ` Andreas Schwab
2019-07-31 22:28                                                               ` Collin Day
2019-08-01  1:58                                                               ` Thomas Fitzsimmons
2019-08-16  3:40                                                                 ` Thomas Fitzsimmons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAB=m8wLNB=pjWqGBCnXuXpDA=1UB4C0sDxuU23FZiwJNQDmxDA@mail.gmail.com' \
    --to=dcday137@gmail.com \
    --cc=35969@debbugs.gnu.org \
    --cc=fitzsim@fitzsim.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).