Commit Graph

92 Commits

Author SHA1 Message Date
Dmitriy Kopylenko 3e43a606c9 [maven-release-plugin] prepare for next development iteration 2018-01-12 11:56:32 -05:00
Dmitriy Kopylenko 43c7d1da8d [maven-release-plugin] prepare release cas-client-3.5.0 2018-01-12 11:56:28 -05:00
Scott aee4676272 Merge pull request #213 from lxbzmy/patch-1
Add JIRA Rest API support
2017-06-21 23:20:17 -04:00
Misagh Moayyed 9f48e75394
Fixed logging issue; returning null in case principal cannot be determined 2017-06-20 09:21:04 -07:00
Misagh Moayyed 544939ef52 Merge pull request #188 from eghm/master
Log an error message if CAS principal has no corresponding Confluence principal
2017-06-20 09:18:46 -07:00
Misagh Moayyed 970a0f5db9 Merge pull request #212 from mmoayyed/json-validator
New Json ticket validator to accept CAS responses in JSON.
2017-06-20 09:16:37 -07:00
Misagh Moayyed 7f2dae573c Merge pull request #156 from joeschweitzer/master
Return existing user if session is already authenticated
2017-06-01 21:06:42 -04:00
Alex Lei 雷 06b6b0c718 Add JIRA Rest API support
new JIRA 6 has rest api begin with url /rest when I use cas authentication filter which skip filter /rest ,there will be thrown exception:

java.lang.NullPointerException
    at com.atlassian.jira.security.login.JiraSeraphAuthenticator.getUserFromBasicAuthentication(JiraSeraphAuthenticator.java:149) 
    at com.atlassian.seraph.auth.DefaultAuthenticator.getUser(DefaultAuthenticator.java:339) [atlassian-seraph-3.0.3.jar:?]
    at org.jasig.cas.client.integration.atlassian.Jira44CasAuthenticator.getUser(Jira44CasAuthenticator.java:76) [cas-client-integration-atlassian-3.4.1.jar:3.4.1] 
    at com.atlassian.seraph.auth.AbstractAuthenticator.getUser(AbstractAuthenticator.java:45) [atlassian-seraph-3.0.3.jar:?]
    at com.atlassian.seraph.filter.BaseLoginFilter$SecurityHttpRequestWrapper.getUserPrincipal(BaseLoginFilter.java:238) [atlassian-seraph-3.0.3.jar:?]
    at com.atlassian.seraph.filter.BaseLoginFilter$SecurityHttpRequestWrapper.getRemoteUser(BaseLoginFilter.java:225) [atlassian-seraph-3.0.3.jar:?]
    at javax.servlet.http.HttpServletRequestWrapper.getRemoteUser(HttpServletRequestWrapper.java:168) [servlet-api.jar:?]
    at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.preFilterCallStep(AccessLogFilter.java:175) [classes/:?]
    at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.executeRequest(AccessLogFilter.java:86) [classes/:?]
    at com.atlassian.jira.web.filters.accesslog.AccessLogFilter.doFilter(AccessLogFilter.java:78) [classes/:?]

After hard debug work I found key program flow different from default authenitcator  :

in `com.atlassian.seraph.filter.BaseLoginFilter#SecurityHttpRequestWrapper#getUserPrincipal()`

public Principal getUserPrincipal() {
            return BaseLoginFilter.this.getAuthenticator().getClass().isAnnotationPresent(AuthenticationContextAwareAuthenticator.class)?BaseLoginFilter.this.getAuthenticationContext().getUser():BaseLoginFilter.this.getAuthenticator().getUser(this.delegateHttpServletRequest);
        }

The `AuthenticationContextAwareAuthenticator` annotation cause different flow.

So, add `AuthenticationContextAwareAuthenticator` annotation can slow problem.
2017-05-27 11:13:09 +08:00
leleuj c0ded8f897 merge with master 2017-05-24 08:36:57 +02:00
Misagh Moayyed d6a6f669a5
Exclude transaction dependency 2017-05-22 09:19:54 -07:00
Misagh Moayyed 733f6599e8
clean up JIRA dependencies so project can compile 2017-05-17 16:42:09 -07:00
Misagh Moayyed 24f22bdea4
clean up JIRA dependencies so project can compile 2017-05-17 16:31:50 -07:00
eghm 7e994b37b9 Use parameterized log statement when logging CAS only principle. 2016-09-19 10:14:22 -10:00
eghm 3f7d7e9309 Log an error message if CAS principle has no corresponding Confluence principle. 2016-09-15 13:57:11 -10:00
Misagh Moayyed 5ce675434b Remove redundant groupId from POM defns 2016-09-07 16:12:34 +04:30
Joe Schweitzer e209a32cbf Return existing user if session is already authenticated 2016-03-17 12:03:11 -04:00
Scott 45bcec3080 [maven-release-plugin] prepare for next development iteration 2015-09-13 00:23:55 -04:00
Scott 00e580cbc0 [maven-release-plugin] prepare release cas-client-3.4.1 2015-09-13 00:19:52 -04:00
Scott f6f935e5ce [maven-release-plugin] rollback the release of cas-client-3.4.1 2015-09-13 00:18:34 -04:00
Scott 8966206e8e [maven-release-plugin] prepare for next development iteration 2015-09-13 00:13:20 -04:00
Jérôme LELEU 505d90eb2c upgrade version to 3.5.0-SNAPSHOT 2015-08-03 12:53:19 +02:00
Scott 1aec723f3e [maven-release-plugin] prepare for next development iteration 2015-07-21 22:57:28 -04:00
Scott 02aa3da8de [maven-release-plugin] prepare release cas-client-3.4.0 2015-07-21 22:57:26 -04:00
Scott 1d3e8d7f4b Updated NOTICE generation. 2015-07-21 22:16:53 -04:00
Marvin S. Addison d0cb144171 Issue #100 Bump minor version due to refactoring. 2015-05-11 12:09:00 -04:00
Marvin S. Addison 8038e69fc0 Move SAML components into separate module. 2015-04-14 16:19:12 -04:00
Marvin S. Addison 51f6a82a40 [maven-release-plugin] prepare for next development iteration 2014-08-15 08:52:01 -04:00
Marvin S. Addison 32b0d7c882 [maven-release-plugin] prepare release cas-client-3.3.3 2014-08-15 08:51:04 -04:00
Marvin S. Addison 88af091741 Update notice files. 2014-08-15 08:48:05 -04:00
Scott Battaglia e8c78b8dd3 [maven-release-plugin] prepare for next development iteration 2014-08-03 00:22:49 -04:00
Scott Battaglia 3263202762 [maven-release-plugin] prepare release cas-client-3.3.2 2014-08-03 00:22:14 -04:00
Scott Battaglia 53130b9c34 [maven-release-plugin] prepare for next development iteration 2014-03-19 20:55:47 -04:00
Scott Battaglia 6c34fa929f [maven-release-plugin] prepare release cas-client-3.3.1 2014-03-19 20:55:38 -04: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 f135c5e5c1 Updated notice and pom 2014-01-07 20:31:34 -05:00
Scott Battaglia b046dc51dc Updated Atlassian Maven Repository location 2014-01-07 20:04:57 -05:00
Scott Battaglia e2aefd72b1 Added generated notice files 2014-01-07 20:00:30 -05:00
Scott Battaglia c4deb27080 Fixed licensing / exclusions. 2014-01-06 23:51:09 -05:00
Scott Battaglia 5e553c208c [maven-release-plugin] rollback the release of v3.3.0 2014-01-05 22:06:46 -05:00
Scott Battaglia 3b11774158 Reformat all files using shared CAS Eclipse formatter. 2013-06-19 22:50:02 -04: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 92db0adf6b CASC-202
migrated some to SLF4J
2013-01-08 23:32:35 -05:00
Jozef Kotlar 6acc6f71a0 minor change digged out of DefaultAuthenticator 2012-11-05 20:59:56 +01:00
Jozef Kotlar 5db2d5e378 implemented authentificator for Confluence 3.5 for newer Seraph/Crowd infrastructure
- using getUserFromSession()
- propagating event
- based on https://bitbucket.org/jaysee00/example-confluence-sso-authenticator
- based on comment from https://jira.atlassian.com/browse/CONF-26547
2012-10-30 14:28:35 +01:00
Zhengyu Yong 0f9909406f Jira44CasAuthenticator will handle authentication for versions 4.4 and up 2012-04-02 18:07:37 +08:00
Zhengyu Yong 992a081434 added dependency to jira-core version 4.4 2012-04-02 18:05:48 +08: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