Scott Simpson
74b27d504d
Adding CORS support
...
Change-Id: I894473994cdfea0996ad16e7619aff421f604abc
2012-10-23 14:48:59 -05:00
Michael Barton
5e3e9a882d
local WSGI Request and Response classes
...
This change replaces WebOb with a mostly compatible local library,
swift.common.swob. Subtle changes to WebOb's API over the years have been a
huge headache. Swift doesn't even run on the current version.
There are a few incompatibilities to simplify the implementation/interface:
* It only implements the header properties we use. More can be easily added.
* Casts header values to str on assignment.
* Response classes ("HTTPNotFound") are no longer subclasses, but partials
on Response, so things like isinstance no longer work on them.
* Unlike newer webob versions, will never return unicode objects.
Change-Id: I76617a0903ee2286b25a821b3c935c86ff95233f
2012-09-28 14:48:48 -07:00
Paul McMillan
92fbf44d10
Fixed grammar and improve docs.
...
Corrected its/it's mistakes, harmonized line wrapping within some docs
and clarified doc wording in several places.
Change-Id: Ib9ac6d5e859f770a702e1fad6de8d4abe0390b47
2012-04-10 12:27:14 -07:00
Chmouel Boudjnah
3b7442801d
Fix documentation example.
...
get HTTPUnauthorized and HTTPForbidden from webob.exc
Change-Id: Id0a40077fb0adedd8cbf4f490e13fd522c92571a
2011-10-07 18:53:48 -04:00
gholt
f68b6354e2
Renaming TestAuth to TempAuth because nose hates anything with the word test in it.
2011-05-26 02:24:12 +00:00
gholt
3ee4a01100
Remove swauth; update references from swauth to testauth.
2011-05-26 02:17:42 +00:00
gholt
bd22dbe712
Removing DevAuth
2011-03-14 02:56:37 +00:00
gholt
35f3487879
Incorporated Swauth into Swift as an optional DevAuth replacement.
2010-12-01 17:08:49 -08:00
Anne Gentle
b1d10d854d
Deleted pesky extra space.
2010-10-14 13:38:38 -05:00
Anne Gentle
39a9394751
Modified for edits.
...
-------------This line and the following will be ignored --------------
modified:
doc/source/development_auth.rst
doc/source/getting_started.rst
2010-10-14 13:11:21 -05:00
Anne Gentle
6c5c1e3071
Spell check for .rst files
2010-10-13 11:28:27 -05:00
Clay Gerrard
d5770ee214
trying to make sense of auth middleware and reseller prefix
2010-09-16 16:44:44 -05:00
gholt
dcbb51cc71
Updated docs.
2010-09-11 17:23:24 -07:00
gholt
a5df15005b
Got rid of inter-reseller ACLs. Enforce ACLs to only work within a reseller space. Updated docs and tests. We can expand to inter-reseller in the future with ACLs like .x:RESELLER_group
2010-09-09 10:24:25 -07:00
gholt
d2ec027e22
For ACL strings: Shortened .ref to just .r, though .ref, .referer, and .referrer are all accepted. Updated 'Creating Your Own Auth Middleware' to describe how the DevAuth server works and suggestions for creating one's own. Added reseller_prefix (optional) implementation. Used urlparse in referrer_allowed. Fixed bug where group names would get lowercased by clean_acl. Changed .r:any to .r:*. Allowed .r:*.example.com to mean .r:.example.com. Made proxy log just the first authenticated group (the user) alongside the token. Moved proxy callback to clean_acl before the length check of the metadata. Cleaned up redundant logic in first proxy swift.authorize callback. Bit better docs. More and updated tests.
2010-09-08 22:37:27 -07:00
gholt
28ac96b90d
Simply auth middleware and document how to make your own
2010-09-03 20:47:43 -07:00