17 Dec, 2014
2 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@814 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@813 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
12 Dec, 2014
1 commit
-
git-svn-id: https://svn.forgerock.org/openig/trunk@807 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
10 Dec, 2014
1 commit
-
git-svn-id: https://svn.forgerock.org/openig/trunk@805 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
08 Dec, 2014
1 commit
-
Recent Google OAuth 2.0 update is breaking the OAuth 2.0 Client Filter by having the `expires_in` attribute of the access token response expressed as a String instead of a JSON Number. We're now doing the adaptation in OpenIG and deal with the String case by hand. git-svn-id: https://svn.forgerock.org/openig/trunk@801 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
05 Dec, 2014
7 commits
-
Activate binary license integration in the `opening-war` module (our distributable artifact). git-svn-id: https://svn.forgerock.org/openig/trunk@797 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
As the web application does not include the documentation (which is the only component under CC license), we should not include that license text into the archive. git-svn-id: https://svn.forgerock.org/openig/trunk@796 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@792 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@791 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@790 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@787 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
This patch to trunk removes information pertaining to the 3.1 branch, though it retains the list of deprecated items for readers coming to nightly builds from 3.0.x. git-svn-id: https://svn.forgerock.org/openig/trunk@786 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
04 Dec, 2014
3 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@783 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@782 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@780 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
03 Dec, 2014
3 commits
-
Thanks to Jean-Charles for suggestions and review over IM. git-svn-id: https://svn.forgerock.org/openig/trunk@779 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
Only a `404` status code was returned when something goes wrong, nothing was actually printed on screen if you accessed OpenIG from a browser. This change add a JSON content (still machine parseable) with a descriptive error message that is displayed by browser, making the client aware that something was wrong for any reason. This change was triggered with fix for OPENIG-411, that had the side effect of not propagating route's exception to the user anymore git-svn-id: https://svn.forgerock.org/openig/trunk@778 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@777 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
02 Dec, 2014
7 commits
-
Reviewed onscreen by Jean-Charles. git-svn-id: https://svn.forgerock.org/openig/trunk@776 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@775 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@774 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@773 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
`HeapImpl.addDefaultDeclaration()` is now the way to add default object declarations in the heap. Default declarations are only included if no user-provided overriding declaration is found (only works for heap declarations, not for named inline declaration). git-svn-id: https://svn.forgerock.org/openig/trunk@772 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
`ConsoleLogSink` is now rendering each `LogEntry` on 2 lines with a line separator between entries, the objective being to improve console log readability. The first line is the header line and display the timestamp of the event (in the current system Locale), the entry's `LogLevel` and ends with the `Name` (leaf part) of the heap object that is the source of the log statement. ``` MON DEC 01 20:39:16 CET 2014 (INFO) _Router Added route 'oauth2-resources.json' defined in file '/Users/guillaume/tmp/demo/config/routes/oauth2-resources.json' ------------------------------ ``` Notice that a special treatment is done when logging a `Throwable`: a condensed stack trace is printed on the console and if (and only if) the `LogSink` has been assigned a `DEBUG` or `TRACE` level, the full stack trace is printed (independently of the entry's level). ``` MON DEC 01 15:28:10 CET 2014 (DEBUG) ResourceServer Initial token resolution has failed [ OAuth2TokenException] > Initial token resolution has failed [ OAuth2TokenException] > Authorization Server returned an error (error: bad_request, description: Could not read token in CTS) org.forgerock.openig.filter.oauth2.OAuth2TokenException: Initial token resolution has failed at org.forgerock.openig.filter.oauth2.cache.CachingAccessTokenResolver.resolve(CachingAccessTokenResolver.java:62) ... 33 more ------------------------------ ``` A new `stream` property has been added to `ConsoleLogSink` to let the user choose which PrintStream to use for printing messages: * `ERR`: Use System.err (default value, keep compatibility) * `OUT`: Use System.out * `AUTO`: Select System.out for `TRACE` to `INFO` messages, switching to System.err for `WARNING` and `ERROR`. `FileLogSink` implements a machine parseable `LogEntry` rendering: each entry is on one line and includes: * timestamp of the event (in the current system Locale), always have the same length * the entry's `LogLevel`, always 1 word, uppercase * the `Name` (leaf part) of the heap object that is the source of the log statement. * a `---` separator that segregates the beginning of the line (log statement's context) from the entry's message (the rest of the line) Notice that in the case of `Throwable` printing, the full stack trace is printed as commented lines. ``` MON DEC 01 17:46:21 CET 2014 DEBUG ResourceServer --- Initial token resolution has failed # org.forgerock.openig.filter.oauth2.OAuth2TokenException: Initial token resolution has failed # at org.forgerock.openig.filter.oauth2.cache.CachingAccessTokenResolver.resolve(CachingAccessTokenResolver.java:62) # at org.forgerock.openig.filter.oauth2.OAuth2ResourceServerFilter.filter(OAuth2ResourceServerFilter.java:205) # at org.forgerock.openig.decoration.capture.CaptureFilter.filter(CaptureFilter.java:62) ``` git-svn-id: https://svn.forgerock.org/openig/trunk@771 dbb9e58e-28e6-4ce0-90e8-f11d9605b710 -
git-svn-id: https://svn.forgerock.org/openig/trunk@770 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
01 Dec, 2014
4 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@769 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
Minor updates reviewed by Guillaume The expectation is that OpenIG will expose endpoints like this under /openig. git-svn-id: https://svn.forgerock.org/openig/trunk@768 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
contains a port number. git-svn-id: https://svn.forgerock.org/openig/trunk@767 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
Indeed, the host http header wasn't replaced when doing a rebaseUri, but not only in this case, with the setUri too. To solve this problem, a simple fix would be to do an update of the headers when getting them. - A unit test has been added for the DispatchHandler case. git-svn-id: https://svn.forgerock.org/openig/trunk@766 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
28 Nov, 2014
9 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@765 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@764 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@763 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@762 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
The decorations are now applied in a more intuitive way: * Local decorations are declared inside of the heap object declaration (no changes here) ``` { "type": "Something", "decorator-name": "configuration ..." } ``` * Global decorations are declared in a top-level element called `globalDecorators` and are inherited by sub-heap. ``` "globalDecorators": { "decorator-name": "configuration ...", ... } ``` * Top-level handler decorations are declared as top-level attributes ``` "handler": "NameOfHandler" "decorator-name": "configuration ..." ``` Decorators are applied in this order: 1. local decorations 2. global decorations (inherited first, up to the ones declared in the requester heap) 3. top-level reference decorations (only if the heap object is the main `handler` object and retrieved with `HeapImpl.getHandler()`) Default configuration is now using the top-level reference decoration style. git-svn-id: https://svn.forgerock.org/openig/trunk@761 dbb9e58e-28e6-4ce0-90e8-f11d9605b710 -
This audit framework application maintains hit counters on a per-tag basis. Here is an output sample: ``` { "resources": { "completed": 1, "failed": 0, "flowing": 0 }, "main": { "completed": 12, "failed": 0, "flowing": 1 }, "monitor": { "completed": 11, "failed": 0, "flowing": 1 } } ``` `resources`, `main` and `monitor` being "non-standard" (or user-provided) tags. git-svn-id: https://svn.forgerock.org/openig/trunk@760 dbb9e58e-28e6-4ce0-90e8-f11d9605b710 -
git-svn-id: https://svn.forgerock.org/openig/trunk@759 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@758 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
The `307` status code is a temporary redirect and is processed by the UA as a complete request replay (including method, form params, ...). `302`, on the other hand simply expects the UA to `GET` the provided `Location` Uri value. git-svn-id: https://svn.forgerock.org/openig/trunk@757 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
27 Nov, 2014
2 commits
-
Reserve real usage of HttpServletRequest and HttpServletResponse objects for Fedlet classes only. Session attributes' variables `subjectMapping`, `sessionIndexMapping`, `authnContext` and all of the `attributeMapping` values are now stored in the OpenIG Session object (instead of the `HttpSession`). That makes it possible to use theses values inside OpenIG configuration files (through `Expression`). git-svn-id: https://svn.forgerock.org/openig/trunk@756 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@755 dbb9e58e-28e6-4ce0-90e8-f11d9605b710