Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Bug? 401 responses responses are malformed www-authenticate
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Brad Laney  
View profile  
 More options Aug 7 2012, 11:36 am
From: Brad Laney <brad.j.la...@gmail.com>
Date: Tue, 7 Aug 2012 08:36:09 -0700 (PDT)
Local: Tues, Aug 7 2012 11:36 am
Subject: Bug? 401 responses responses are malformed www-authenticate

The raw response of a token invalid_client request is:

HTTP/1.1 401 Unauthorized
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 4.0
WWW-Authenticate: Basic
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 07 Aug 2012 15:27:59 GMT
Content-Length: 81

{"error":"invalid_client","error_description":"The client secret was
incorrect."}

This is what happens when java uses the apache http client to read this
request:

   - Tue Aug 07 10:26:05 CDT
   2012:ERROR:org.apache.http.client.ClientProtocolException

The reason I discovered this, is I am using SoapUI to create
backwards compatibility tests.
It cannot validate a correct invalid_client response because it can't read
it. The realm should be blank.

It should be:

WWW-Authenticate: Basic realm=""

I couldn't tell if this is required by the spec, but browsers support both
ways. But the java class doesn't.

Thoughts?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Arnott  
View profile  
 More options Aug 8 2012, 12:27 am
From: Andrew Arnott <andrewarn...@gmail.com>
Date: Tue, 7 Aug 2012 21:27:59 -0700
Local: Wed, Aug 8 2012 12:27 am
Subject: Re: [dotnetopenauth] Bug? 401 responses responses are malformed www-authenticate

I'm not familiar enough with the HTTP spec to say whether the realm="" is
supposed to be required or not (or even if it specifies one way or the
other).

But I don't object to including this bit in the HTTP response from DNOA.

If you happen to be able to build DNOA yourself, can you try applying the
change to this file and reporting back as to whether it fixed the issue?
src\DotNetOpenAuth.OAuth2.AuthorizationServer\OAuth2\ChannelElements\Client CredentialHttpBasicReader.cs

Consider sending a pull request with the fix if it works.

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death
your right to say it." - S. G. Tallentyre


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brad Laney  
View profile  
 More options Aug 8 2012, 12:14 pm
From: Brad Laney <brad.j.la...@gmail.com>
Date: Wed, 8 Aug 2012 11:14:50 -0500
Local: Wed, Aug 8 2012 12:14 pm
Subject: Re: [dotnetopenauth] Bug? 401 responses responses are malformed www-authenticate

Guess I can but I know it works because I used fiddler to modify the
request to add the realm part and it worked

On Aug 7, 2012 11:28 PM, "Andrew Arnott" <andrewarnott<andrewarn...@gmail.com>

@ <andrewarn...@gmail.com>gmail.com <andrewarn...@gmail.com>> wrote:

> I'm not familiar enough with the HTTP spec to say whether the realm="" is

supposed to be required or not (or even if it specifies one way or the
other).

> But I don't object to including this bit in the HTTP response from DNOA.

> If you happen to be able to build DNOA yourself, can you try applying the

change to this file and reporting back as to whether it fixed the issue?

src\DotNetOpenAuth.OAuth2.AuthorizationServer\OAuth2\ChannelElements\Client CredentialHttpBasicReader.cs

> Consider sending a pull request with the fix if it works.

> --
> Andrew Arnott
> "I [may] not agree with what you have to say, but I'll defend to the

death your right to say it." - S. G. Tallentyre

2012:ERROR:org.apache.http.client.ClientProtocolException
>> The reason I discovered this, is I am using SoapUI to create

backwards compatibility tests.
>> It cannot validate a correct invalid_client response because it can't

read it. The realm should be blank.

>> It should be:

>> WWW-Authenticate: Basic realm=""

>> I couldn't tell if this is required by the spec, but browsers support

both ways. But the java class doesn't.

>> Thoughts?

>> --
>> You received this message because you are subscribed to the Google

Groups "DotNetOpenAuth" group.
>> To view this discussion on the web visit

https://groups.google.com/d/msg/dotnetopenid/-/ymrheOwc_X0J.
>> To post to this group, send email to dotnetopenid@googlegroups.com.
>> To unsubscribe from this group, send email to

dotnetopenid+unsubscribe@googlegroups.com.
>> For more options, visit this group at

http://groups.google.com/group/dotnetopenid?hl=en.

> --
> You received this message because you are subscribed to the Google Groups

"DotNetOpenAuth" group.
> To post to this group, send email to dotnetopenid@googlegroups.com.
> To unsubscribe from this group, send email to

dotnetopenid+unsubscribe@googlegroups.com.
> For more options, visit this group at

http://groups.google.com/group/dotnetopenid?hl=en.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Arnott  
View profile  
 More options Aug 8 2012, 2:17 pm
From: Andrew Arnott <andrewarn...@gmail.com>
Date: Wed, 8 Aug 2012 11:17:05 -0700
Local: Wed, Aug 8 2012 2:17 pm
Subject: Re: [dotnetopenauth] Bug? 401 responses responses are malformed www-authenticate

Brad,

I'd consider that a successful test then.  Can you file a
bug<http://bit.ly/dnoawish> and
include this information?
--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death
your right to say it." - S. G. Tallentyre


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brad Laney  
View profile  
 More options Aug 9 2012, 12:15 pm
From: Brad Laney <brad.j.la...@gmail.com>
Date: Thu, 9 Aug 2012 11:15:58 -0500
Local: Thurs, Aug 9 2012 12:15 pm
Subject: Re: [dotnetopenauth] Bug? 401 responses responses are malformed www-authenticate

Sure thing:  https://github.com/DotNetOpenAuth/DotNetOpenAuth/issues/189

On Wed, Aug 8, 2012 at 1:17 PM, Andrew Arnott <andrewarn...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »