Commit Graph

351 Commits

Author SHA1 Message Date
Misagh Moayyed 05570e4d18 CASC-219: changed exact to contains 2014-03-13 03:20:39 -07:00
Misagh Moayyed e18232e238 CASC-219: renamed matcher class to match behavior 2014-03-12 07:37:59 -07:00
Misagh Moayyed df336da4de CASC-219: switched warn to error, fixed typo and this refs 2014-03-11 08:46:00 -07:00
Misagh Moayyed 2aa02e253f CASC-219: updated internal map to be a static ref instead 2014-03-11 07:11:53 -07:00
Misagh Moayyed 1089e3de89 CASC-219: allowed extensions for ignoring urls 2014-03-11 05:04:59 -07:00
Misagh Moayyed 0fd2dbd659 CASC-219: updated javadocs and added map to keep track of pattern matchers 2014-03-11 04:24:27 -07:00
Misagh Moayyed 8e256219da CASC-219: Cleaned up formatting issues 2014-03-10 05:22:44 -07:00
Scott Battaglia eec2d4ec51 Removed debug statements used to confirm private methods worked. 2014-03-09 23:18:14 -04:00
Scott Battaglia 1bcc4a1714 CASC-214 Improve Service Url Construction to Add Non-Standard Ports if Missing from Configuration
Problem: sometimes the port is missing from the configuration.  This generates the wrong service url.
Solution: Add the server port if the server configuration does not have one.
QA Notes: Added unit tests to confirm behavior (and old unit tests still pass)
2014-03-09 23:13:04 -04:00
Misagh Moayyed d62bf68eee CASC-219: Provide support for certain urls to be excluded from CAS filters. 2014-03-07 11:17:14 -07:00
Misagh Moayyed f55bae3b89 CASC-219: Provide support for certain urls to be excluded from CAS filters. 2014-03-07 01:52:50 -07:00
Misagh Moayyed 1b4af19d70 CAS-219: Provide support for certain urls to be excluded from CAS filters. 2014-03-02 03:03:24 -07:00
Misagh Moayyed 8b3ac7922d CAS-219: Provide support for certain urls to be excluded from CAS filters. 2014-02-27 22:02:19 -07:00
Scott Battaglia ce852a19a4 CASC-203 Properly Parse Response to Keep Line Breaks
Problem: The CAS Client uses a buffer reader which strips out the returned line breaks.
Solution: Switch to a normal input stream reader and add appropriate test.
2014-02-17 23:09:32 -05:00
Scott Battaglia 1e89580a6f [maven-release-plugin] prepare for next development iteration 2014-01-07 21:15:06 -05:00
Scott Battaglia 2bf3129d04 [maven-release-plugin] prepare release v3.3.0 2014-01-07 20:37:19 -05:00
Scott Battaglia e2aefd72b1 Added generated notice files 2014-01-07 20:00:30 -05:00
Scott Battaglia cb2957a1e2 Fixed license files 2014-01-05 23:04:03 -05:00
Scott Battaglia 427c2721e9 Added missing license headers 2014-01-05 22:53:17 -05:00
Scott Battaglia 5e553c208c [maven-release-plugin] rollback the release of v3.3.0 2014-01-05 22:06:46 -05:00
Marvin S. Addison 92fbf3fcc0 Put HttpServletRequest#logout() in separate try/catch block. 2013-10-28 16:07:28 -04:00
Marvin S. Addison e494ac5cf6 Respond to code review feedback.
1. Call HttpServletRequest#logout() on SLO callback since it is available.
2. Use final for local variables where possible.
2013-10-28 15:58:40 -04:00
Marvin S. Addison f7343e5cb2 Remove cached assertions on logout to prevent credential replay attack. 2013-10-24 12:57:25 -04:00
Marvin S. Addison 8c8db86056 CASC-174 Remove @version javadoc tag. 2013-08-15 11:05:32 -04:00
Marvin S. Addison 0e3837e765 CASC-174 Remove JBoss verbiage from error message. 2013-08-01 14:10:38 -04:00
Marvin S. Addison 31564c692e CASC-174 Provide facility for Servlet 3.0 programmatic JAAS login.
Servlet3AuthenticationFilter supersede the JBoss-specific
WebAuthenticationFilter for JBoss 7. It should also provide support for
programmatic JAAS login for any container that is Servlet 3.0/JEE6
compliant.
2013-08-01 14:05:01 -04:00
Scott e3aeeea78e Merge pull request #52 from battags/CASC-211
CASC-211 Better Ticket Validation Error Logic
2013-06-20 16:31:59 -07:00
Scott Battaglia 9a4275ee55 Renamed arguments 2013-06-20 19:28:35 -04:00
Scott Battaglia 4bcc71fa0d Switched to SaxParserFactory directly. Unit tests pass. CASC-212 2013-06-20 00:15:53 -04:00
Scott Battaglia 99494fe0b7 Fixed formatting again. 2013-06-19 23:16:17 -04:00
Scott Battaglia 125ee6f633 Changed default for exceptionOnValidationFailure and message.
This seems to have some formatting changes in it also for some reason.
2013-06-19 23:11:22 -04:00
Scott Battaglia 3b11774158 Reformat all files using shared CAS Eclipse formatter. 2013-06-19 22:50:02 -04:00
Scott Battaglia 727037d1f5 Swithed to existing Reflection utils. Added supporting unit test. 2013-06-19 22:26:09 -04:00
Scott Battaglia 970e412a1b Merge branch 'master' into CASC-206 2013-06-19 22:25:18 -04:00
Scott Battaglia 4f8dfb8543 CASC-207
Converted logger to static for de-serialization purposes.
2013-06-18 22:38:25 -04:00
Scott Battaglia 22d092c72a Added missing javadoc 2013-06-18 22:07:50 -04:00
Scott Battaglia 29216562f6 Fixed failing test case that was missing an import statement. 2013-06-18 21:57:22 -04:00
Scott Battaglia abca315fe8 Added redirect strategy to support Faces. 2013-06-18 21:56:58 -04:00
Scott Battaglia 826432d3f7 Merge branch 'master' of github.com:Jasig/java-cas-client 2013-06-18 21:08:50 -04:00
mores 4b1cdd8f47 getSocketFactory() should only be called on a sslContext that has been initialized. 2013-05-06 13:46:47 -04:00
mores 7d130c9bfc Fix to allow client to work with Server 3.5.2 2013-04-25 09:11:11 -04:00
Misagh Moayyed 5e67c30b57 Merge pull request #40 from mmoayyed/CASC-180
CASC-180: Fix the issue with casting to http url connections and provide...
2013-03-11 13:35:54 -07:00
Misagh Moayyed b7699170a5 CASC-180: Renamed factory to be HttpURLConnectionFactory. 2013-03-10 20:51:27 -07:00
Misagh Moayyed 9dfa3a16a9 CASC-180: Fixed try/catch block issue with URL creation. 2013-03-09 15:00:45 -07:00
Misagh Moayyed c50b143c3f CASC-180: Removed the default url connection factory, allowed proxy retrieval to use the configured factory instance. 2013-03-06 09:34:39 -07:00
Misagh Moayyed c970d5b68d CASC-180: Fix the issue with casting to http url connections and provide a default instance for the http url factory. 2013-03-04 14:17:55 -07:00
Marvin S. Addison a24995233d CASC-204 Prevent renew misconfiguration.
Prevent renew from being configured via filter init param, which can lead
to a half-configured state where authentication filter is configured for
renew without validation filter. With this change in place, renew MUST be
configured by a global configuration facility such as context parameter or
JNDI to ensure proper configuration.
2013-03-04 10:43:55 -05:00
Scott Battaglia 3e5f97a4df Merge branch 'master' of github.com:battags/java-cas-client 2013-02-17 21:31:55 -05:00
Misagh Moayyed 035c946c8d CASC-180 - Add support for Client Side Certificates
Moved url connection factory interface and its https impl into the ssl package.
2013-01-24 15:47:22 -07:00
Misagh Moayyed 442b9ab5be Fixed javadoc for unused parameter. 2013-01-24 12:07:22 -07:00
Misagh Moayyed 62f9058b78 CASC-180 - Add support for Client Side Certificates
In order to utilize client side certificates, this commit facilitates the creation of a SSLSocketFactory on HttpsURLConnection for the client. The configuration is encapsulated inside a url factory instance that applies the adjustments where necessary.

This commit is continuation of the posted pending pull on github that is at:
https://github.com/Jasig/java-cas-client/pull/26

...and applies the suggestions and fixes that were brought to light during the code review.
2013-01-24 12:01:47 -07:00
Scott Battaglia 25e2b6c696 Fix formatting of pom.xml and update licensing to match CAS project. 2013-01-15 22:04:16 -05:00
Scott Battaglia 485cc2116b CASC-202
convert Commons Logging to SLF4J.  Add Enforcer.
2013-01-11 23:25:52 -05:00
Scott Battaglia a2be7e030c CASC-202
migration to SLF4J
2013-01-11 22:23:49 -05:00
Scott Battaglia 27aa7c71f6 Merge branch 'master' into CASC-202 2013-01-08 23:34:01 -05:00
Scott Battaglia 92db0adf6b CASC-202
migrated some to SLF4J
2013-01-08 23:32:35 -05:00
Scott bb4a563940 Merge pull request #34 from battags/CASC-179
CASC-179
2013-01-08 05:18:40 -08:00
David Ordás bcea17aacd re-add support for multi-valued attributes
Add tests for ensure re-add support for multi-valued attributes is working
2013-01-08 13:28:35 +01:00
Scott Battaglia 8ace78cbf8 CASC-196
re-add support for multi-valued attributes
2013-01-07 23:10:24 -05:00
Scott Battaglia f9b2bbf43f Merge branch 'master' into CASC-196 2013-01-07 22:56:07 -05:00
Scott Battaglia 7dedd078f7 CASC-179
added parameter to determine whether to create sessions.  Also, now properly does a return.
2013-01-07 22:51:45 -05:00
Scott dca9b6d260 Merge pull request #28 from battags/CASC-192
CASC-192
2013-01-07 06:22:28 -08:00
Scott 7e8c2a6c97 Merge pull request #30 from battags/CASC-168
CASC-168
2013-01-07 05:02:05 -08:00
Scott 53247ac253 Merge pull request #29 from battags/CASC-191
CASC-191
2013-01-07 05:01:51 -08:00
Scott 321d2b3431 Merge pull request #27 from battags/CASC-195
CASC-195
2013-01-06 21:02:08 -08:00
Scott Battaglia 29bd700bb4 NOJIRA fix minor missing final tags and javadoc. 2013-01-06 23:56:24 -05:00
Scott Battaglia 866ead7ddc CASC-196
real XML parsing example if using <cas:attributes>.  Updated tests to make sure it works if there are line breaks.
2013-01-06 23:40:46 -05:00
Scott Battaglia 5017ecb87b CASC-168
added ability to specify class name in order to use a sub-class.
2013-01-06 19:36:37 -05:00
Scott Battaglia cec2e8e463 CASC-191
isValid method with simple implementation
2013-01-06 18:45:05 -05:00
Scott Battaglia cb27ee1bf5 CASC-192
cast to XSAny in order to actually get the text content.
2013-01-06 18:24:11 -05:00
Scott Battaglia e86cf7518e CASC-195
null check in ProxyGrantingTicketStorageImpl.
2013-01-06 18:14:42 -05:00
Misagh Moayyed 8cdf8295f2 CASC-199: Allow for an additional option to exclude empty proxy chains. 2012-12-10 21:10:10 -07:00
Bernd Eckenfels b4845cabd6 Corrected JavaDoc (force if useSession=false force redirect=false) 2012-09-21 04:11:22 +02:00
Bernd Eckenfels 1ebab8755c make default value of useRedirect visible. Add some JavaDoc for the
options.
2012-09-21 01:32:06 +02:00
Scott 8e9ddebce1 Merge pull request #13 from serac/casc-166
CASC-166 Fix race condition in cached assertion cleanup.
2012-08-01 18:59:09 -07:00
Marvin S. Addison e2e374d14d CASC-166 Address code review feedback.
Use ConcurrentHashMap to avoid explicit synchronization.
Use TimeUnit to allow more user-friendly configuration of the units of the cache timeout (e.g. MINUTES, SECONDS) and rename option from cacheTimeoutUnits to cacheTimeoutUnit for consistency.
2012-07-26 10:25:06 -04:00
Marvin S. Addison 0ff39cc542 CASC-166 Fix race condition in cached assertion cleanup.
Perform assertion cleanup on same thread as JAAS module invocations to ensure that cleanup of expired assertions occurs before the cache is interrogated. A verifying test case accompanies this fix. The test case required a new module option, cacheTimeoutUnits, in order to complete on a time scale suitable for unit tests.
2012-07-25 16:58:36 -04:00
Misagh Moayyed 02ef9596d9 Merge pull request #12 from battags/CASC-185
CASC-185 - Merged.
2012-07-25 09:34:46 -07:00
Scott Battaglia 03e552cf39 CASC-185
add authentication time to assertion and also actually use the validity period for Assertion.
2012-07-24 23:01:35 -04:00
Scott Battaglia 0adcbcfc0a CASC-169
change to hashmap to allow values to be added
2012-07-24 22:39:06 -04:00
Scott Battaglia 082aafa9ca CASC-184
improved SAML support.  Also execute old AND new XML in the unit tests.

cr for the first round of changes: serac
2012-07-24 22:13:25 -04:00
Scott Battaglia 67999a7bf2 CASC-184
upgrade to OpenSAML2
2012-07-23 22:09:09 -04:00
Misagh Moayyed 6b3590ce88 CASC-182: Combined logging statements into one. 2012-07-11 10:12:20 -07:00
Misagh Moayyed ace712b5a7 CASC-182 - reset the redirectAfterValidation parameter to false when useSession is false. 2012-07-10 14:52:20 -07:00
Scott Battaglia d0ecca4274 CAS-172
don't log proxy message when there is no PGTIOU
2012-04-23 00:00:56 -04:00
Scott Battaglia eff195aaa9 CASC-171
check x-forwarded host header
2012-04-22 23:38:22 -04:00
unknown 7302ca6a99 CASC-175
ensure state can be shared
2012-04-22 23:29:38 -04:00
lavrovdv 4b454e1e2e Parsing the attributes using xml dom parser. 2012-03-15 11:04:47 +04:00
lavrovdv 26e959c3d0 The result of parsing the xml document should not depend on the "\n" symbols. 2012-03-13 15:08:13 +04:00
Marvin S. Addison de2ab6a3ad Update POM for GitHub and update other stale project information.
Reformat pom.xml for 2-space indentation.
2012-03-07 09:43:26 -05:00
Scott Battaglia a19c27f75b CASC-165
disable DTD reading.
2011-10-31 02:44:07 +00:00
Scott Battaglia 80693a3db9 CASC-157
added pre and post hooks
2011-09-22 02:02:03 +00:00
Scott Battaglia 477fc582f0 CASC-163
SSO filter supports ticket over POST.
2011-09-22 01:10:19 +00:00
Scott Battaglia 84aa06629f CASC-160
added a check to make sure we really wanted to gateway.
2011-09-22 00:55:15 +00:00
Scott Battaglia 5cd43c2139 CASC-101
additional protected getters
2011-09-12 04:12:37 +00:00
Scott Battaglia d754bc8d8c NOJIRA
ignore to get the CI to run.
2011-09-11 16:54:16 +00:00
Scott Battaglia fb42fefaf9 NOJIRA
fixed some bugs and updated pom to 3.3-SNAPSHOT
2011-09-11 16:46:53 +00:00
Scott Battaglia 97e6573e32 NOJIRA
accidental Java 1.6 dependency
2011-09-11 16:35:23 +00:00
Scott Battaglia e055585cf2 CASC-144
added support for multiple hosts with a space separated value
2011-09-11 16:15:30 +00:00
Scott Battaglia 3b6ccaac0a CASC-154
added method to AbstractCasFilter that can be overwritten in ticket validation and authentication to support other methods of retrieving the ticket.
2011-09-11 15:11:43 +00:00