JIRA CAS configuration - is it possible to fallback to authentication against internal directory?

120 views
Skip to first unread message

John Tabet

unread,
Mar 13, 2018, 1:32:03 PM3/13/18
to CAS Community
Hello all,

I've searched in these forums a bit, but couldn't find an answer and was hoping if someone could tell me if something might be possible. I've configured JIRA CAS authentication more or less using the instructions here: https://github.com/apereo/java-cas-client#atlassian-integration

However, I was wondering if it's possible to configure JIRA to be able to fallback to internal directory authentication/ignore CAS authentication in some instances. I had considered configuring the URL patterns on filters to ignore certain URLs, but pretty sure that isn't a viable solution because that would mean SSO wouldn't apply to any of those URLs (which they should most of the time). I'm just looking for a solution that would allow me to authenticate to JIRA using either CAS or the internal directory, with some way to toggle between both authentication systems.

Many thanks,
John

Ray Bon

unread,
Mar 13, 2018, 1:50:43 PM3/13/18
to cas-...@apereo.org
John,

Moodle has this as an option. If multiple login systems are available, Moodle will redirect to a page where the user can select one. You could add some smarts to Jira's login page to get similar behaviour.

Ray
-- 
Ray Bon
Programmer analyst
Development Services, University Systems
2507218831 | CLE 019 | rb...@uvic.ca

John Tabet

unread,
Mar 16, 2018, 1:52:13 PM3/16/18
to CAS Community
Perfect, thanks for the reply. That definitely sounds like a workable solution.

I also think I found another solution. Disabling all meaningful authentication redirection in the web.xml (having all of the <url-pattern> tags point to something meaningless within the <filter-mapping> tags for the cas authentication filter) while leaving the seraph-config.xml values intact results in almost the perfectly desired behavior. JIRA now handles all authentication detection, and so allows anonymous content to be interacted with if the content is viewable by anonymous users. Furthermore, all login links still point to the CAS site, and any content that returns an authentication error also redirects to CAS. And, lastly, interacting with any login pages (the login dialog on the landing page or directly visiting <jira URL>/login.jsp) will successfully be processed by JIRA's user login code instead of being intercepted by the CAS authentication filter (thereby allowing users to authenticate against JIRA's internal directory). 

Winston Bai

unread,
Feb 26, 2019, 5:31:32 AM2/26/19
to CAS Community
Hi
I also encountered a problem that is very similar to yours. Can you post your web.xml configuration? Thank you

在 2018年3月17日星期六 UTC+8上午1:52:13,John Tabet写道:
Reply all
Reply to author
Forward
0 new messages