mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
05.21.2013 503283bea9d628b1d118107d62a7c0fd6df61fce
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, April 5, 2013 11:21 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Friday, April 5, 2013 11:21 +0200
commit503283bea9d628b1d118107d62a7c0fd6df61fce
tree 74cb5f777ecaace4e9a7f3596cfdaa221ecd8592 tree | zip | gz
parent 26b9114c9e8529e7f2294fa2a5d6ff7645f69824 view | diff
OPENDJ-830 (CR-1505) Implement authentication and authorization for HTTP connection handler

Implemented authentication with a synchronous username search + bind.
To come next: asynchronous username search + bind.


HTTPAuthenticationConfig.java: ADDED

build.xml, ivy.xml:
Added some tests jars + updated grizzly to the newly released 2.3 stable version.

CollectClientConnectionsFilter.java:
Added HTTPAuthenticationConfig instance member to configure the HTTP auth from the JSON file.
Added many methods to handle HTTP auth in a synchronous way. Will have to change this code to run asynchronously for performance.

HTTPClientConnection.java:
Changed a few signatures and types to handle more than Search operations.

HTTPConnectionHandler.java:
Added methods parseJsonConfiguration(), getAuthenticationConfig(), asString() and asBool() to read the config for HTTP Authentication.

SdkConnectionAdapter.java:
Handled several messages being sent through the same connection.
Extracted methods enqueueOperation() from searchAsync().
Implemented bindAsync().

Adapters.java, Converters.java:
Added new conversion methods.
Renamed local variables to correctly use camel case.

ConvertersTestCase.java:
Removed try / catch / empty anti pattern.
2 files added
6 files modified
836 ■■■■■ changed files
opends/build.xml 15 ●●●●● diff | view | raw | blame | history
opends/ivy.xml 9 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/http/CollectClientConnectionsFilter.java 254 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/http/HTTPAuthenticationConfig.java 233 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/http/HTTPClientConnection.java 22 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/http/HTTPConnectionHandler.java 80 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/protocols/http/SdkConnectionAdapter.java 86 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/http/CollectClientConnectionsFilterTest.java 137 ●●●●● diff | view | raw | blame | history