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

Jean-Noel Rouvignac
16.57.2013 feb6f6f0af2cbb3ebfb91f1bf546c23669b75e4a
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, April 16, 2013 15:57 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, April 16, 2013 15:57 +0200
commitfeb6f6f0af2cbb3ebfb91f1bf546c23669b75e4a
tree d5bbe14112c0098f514ec28b5e747df8ab7fc00a tree | zip | gz
parent 84c248d0cedde00d4f85f3ad60e141925658acb0 view | diff
OPENDJ-830 (CR-1554) Implement authentication and authorization for HTTP connection handler


Improved error reporting to the client: Internal exceptions are now returned to the client as such.
This simplified the error handling code.


CollectClientConnectionsFilter.java:
Renamed sendUnauthorizedResponseWithHTTPBasicAuthChallenge() to sendErrorResponse().
Extracted more generic method toJSON() from sendErrorResponse().
Removed several try / catch + logging and replaced them with throwing the exception up.

HTTPClientConnection.java:
A connection is now valid by default (doh!)

CollectClientConnectionsFilterTest.java:
Updated the tests.
3 files modified
138 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/protocols/http/CollectClientConnectionsFilter.java 110 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/protocols/http/HTTPClientConnection.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/http/CollectClientConnectionsFilterTest.java 26 ●●●●● diff | view | raw | blame | history