Darrell Bishop 5582f166c2 Allow underscores in account/user in tempauth via encoding.
This patch introduces a new user format to tempauth which starts with
"user64_" and in which the account and user are base64 encoded (sans
padding equal signs):

user64_<account_b64>_<user_b64> = <key> [group] [group] [...] [storage_url]

This allows unambiguous parsing and adds the ability to have a user or
account name containing underscores.

The handling of tempauth configuration is fully backward compatible and
this only adds new, optional functionality.

Also beefed up unit tests to get full coverage of the user parsing code
in tempauth's __init__().

Change-Id: Id06304934ab8055a28921f2e1aa3c58a2036d8f8
2012-10-02 09:05:22 -07:00
..
2012-04-23 10:48:24 -05:00
2010-07-12 17:03:45 -05:00
2012-08-22 12:20:30 +08:00
2011-02-24 15:01:22 -08:00
2010-07-12 17:03:45 -05:00
2012-06-07 16:36:49 +02:00
2010-07-12 17:03:45 -05:00
2010-07-12 17:03:45 -05:00
2010-07-12 17:03:45 -05:00