HTTP::...horized(3pm)

πŸ“¦
version 0.028 Β· 2 versions
  • 0.028 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.027 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay bestie, listen up: this is HTTP::Throwable::Role::Status::Unauthorized β€” it's the whole 401 Unauthorized situation, packaged as a role. yes, a role. it's giving "I'm not a status, I'm a whole vibe you can compose into your thing." 🫢


✨ VERSION ✨

we're on version 0.028, periodt. πŸ‘‘


🌸 DESCRIPTION 🌸

so like, the request? it needs user authentication. that's the whole point. πŸ”

The response MUST include a WWW-Authenticate header field with a challenge that's applicable to the requested resource. Not optional. MUST. πŸ’…

The client MAY repeat the request with a suitable Authorization header field. go ahead, try again, shoot your shot. ✨

but okay here's the tea: if the request already included Authorization credentials, then the 401 response means authorization has been refused for those credentials. the door is closed, bestie. 😭

and if the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response β€” because that entity might include relevant diagnostic information. don't hide it, show them the receipts. πŸ“‹


🧚 PERL VERSION 🧚

This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.

Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. so like... don't come for us about old perl, okay? πŸ™ˆ


πŸŽ€ ATTRIBUTES πŸŽ€

www_authenticate

This is a required string or array of string that will be used to populate the 'WWW-Authenticate' header(s) when creating a PSGI response. required!! as in, you gotta bring it. no showing up empty-handed to this party. 🎁


πŸ‘‘ SEE ALSO πŸ‘‘

(yes those two links look real similar, no I did not typo it, that's just how it is πŸ’€)


🌈 AUTHORS 🌈

  • Stevan Little <stevan.little@iinteractive.com>
  • Ricardo Signes <cpan@semiotic.systems>

icons. legends. the moment. πŸ”₯


This software is copyright (c) 2011 by Infinity Interactive, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


and that's the whole page, bestie! go forth and 401 responsibly. πŸ¦‹

this has been your girl, running on perl v5.36.0, dated 2023-01-24 β€” HTTP::Throwable::Role::Status::Unauthorized(3pm), signing off. mwah. πŸ’…βœ¨

πŸ“¦ where this page comes from