Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Authentication-Credential-HTTP CPAN distribution.

Report information
The Basics
Id: 30599
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Authentication-Credential-HTTP

People
Owner: bobtfish [...] bobtfish.net
Requestors: claco [...] cpan.org
Cc: sjn [...] cpan.org
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.09
Fixed in: (no value)



Subject: Plugin Assumes text/html and body
When using this plugin with things like Catalyst::Action::REST, calling authorization_required_response assumes that the output is always text/html and that it should set body to 'Authenticaiton Required, confusing REST, which normally sets content-type to the request content-type and body to the empty rest entity for the given content-type. Imho, this plugin should just get/set auth headers, and not futz with body/content-type at all. Those aren't really the concerns of this plugin.
From: sjn [...] cpan.org
On Tor. 08. Nov. 2007 22:19:59, CLACO wrote: Show quoted text
> > Imho, this plugin should just get/set auth headers, and not futz with > body/content-type at all. Those aren't really the concerns of this > plugin.
FWIW, I agree. :) BTW, is the author awake?
Subject: Re: [rt.cpan.org #30599] Plugin Assumes text/html and body
Date: Wed, 09 Jan 2008 10:24:01 -0500
To: bug-Catalyst-Plugin-Authentication-Credential-HTTP [...] rt.cpan.org
From: "Christopher H. Laco" <claco [...] chrislaco.com>
Salve J. Nilsen via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=30599 > > > On Tor. 08. Nov. 2007 22:19:59, CLACO wrote:
>> Imho, this plugin should just get/set auth headers, and not futz with >> body/content-type at all. Those aren't really the concerns of this >> plugin.
> > FWIW, I agree. :) > > BTW, is the author awake? > >
I think the author is Jess...castaway on irc. Maybe prod the Catalyst mailing list... -=Chris
Download signature.asc
application/pgp-signature 187b

Message body not shown because it is not plain text.

This issue has been fixed in the new Catalyst::Authentication::Credential::HTTP (from 1.003 onwards), and this module is deprecated. Therefore I'm going to resolve this bug. Please test this at your leisure, and feel free to re-raise the bug against that module if it doesn't do what you want.