Raise 400 if credentials not provided (bug 1044032)

This request:

    POST /v2.0/tokens

    {
        "auth": {
            "RAX-KSKEY:apiKeyCredentials": {
                "apiKey": "pass",
                "tenantName": "admin",
                "username": "admin"
            }
        }
    }

Now results in:

    400 Bad Request

    {
        "error": {
            "code": 400,
            "message": "Expecting to find passwordCredentials or token in auth. The server could not comply with the request since it is eithermalformed or otherwise incorrect. The client is assumed to be in error.",
            "title": "Bad Request"
        }
    }

Change-Id: I5caf2b15b1bf60e0e31e8afcc7fc227744bd933a
Add  --config-dir=DIR in OPTIONS

Change-Id: I51c426bdc0610b59aeecc4512c797e709021eb14
add --config-dir=DIR  for keystone-all option

Change-Id: I0c9e1fdc05714a11accd2845fa031ac8e09b1028
Fix Not Found error, when router not match.

Fixes bug 1065234

when the router not match, keystone should return 404 error with
json format or xml format. Not the webob.exc.HTTPNotFound() in
html format.

Change-Id: I88e873b65db5df8393c0bb22db0e98712d77e350
Extract hardcoded configuration in ldap backend (bug 1052111)

Change-Id: I128b0ccdb32694a4fc2f660e73c367aa8b01f257
bug 1068674

Redo part of bp/sql-identiy-pam that was accidently undone by bug 968519.

We encapsulated the call to utils.check_password with a local method,
_check_password, to make it easier to subclass Identity. This allows us
to use a different password checker without having to replace the entire
authenticate method in our code.  The fix for 968519 accidently removed
the call to the local method. *This* fix puts that call back in.

Updating comment because Jenkins failed due to build timeout in
unrelated test.

Change-Id: I69a3ba2d5a62e4c600edab7ef2cc07413c7360cc
Fixes Bug 1063852

Add in the issue time, to prevent a race condition where a token is issued and
revoked, and then a request for an additional token is processed identical
to the first.  Each token now contains the issue time to make it unique.

(moving changing default to PKI to separate review)

Change-Id: I26ed5b3bb31840f5baaf64dbcbeac477e4d71afd
Fixes response for missing credentials in auth

1. If username or password parameters are not specified in the authentication
request, API returns 401 response. Fixed this to return a 400 Bad Request
instead.
2. Also added unit test coverage.

Fixes LP: #1060723

Change-Id: I4861d5b989a151d8fce20f012bb0878b06b9b559
move filter_user function to keystone.identity.core

Change-Id: Idf0e1d27fc0b79d9125f780e4295b5c20a535dec
Adding handling for get user/tenant by name

* /v2.0/tenants?name=<tenant_name>
* /v2.0/user?name=<user_name>
* added get_tenant_by_name() to tests/test_content_types.py
* added get_user_by_name() to tests/test_content_types.py

bug 1055763

Change-Id: Id30dc853db12e155238fbb39cef6a081284cb86c
Add trove classifiers for PyPI

Add classifiers so we can eventually register the project
on PyPI to reserve the name, even though we won't release
packages there.

Change-Id: I9ef676ffd4a84cb149d7f5b6998c16c46e4181b8
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Merge "Fixes Bug 1063852"
Moved SQL backend tests into memory

(test_keystoneclient_sql still uses a db on disk)

Change-Id: I476ee710983adbe3436f41882e8483f8193daf5c
Compare token expiry without seconds

There is a rounding problem that occurs periodically.  Token expiration
Does not need to be confirmed to this level of granularity.

Bug 1045962

Change-Id: I361c5cf309c47b142c35c4359234fd0e44005e5a
Merge "Raise 400 if credentials not provided (bug 1044032)"
Merge "bug 1068674"
Merge "Adding handling for get user/tenant by name"
Merge "Fix Not Found error, when router not match."
Merge "Fixes response for missing credentials in auth"
Merge "Add trove classifiers for PyPI"