CAS modification class

13 views
Skip to first unread message

Sabrina Lanzotti

unread,
Aug 20, 2018, 10:52:34 AM8/20/18
to CAS Community

Hello,

How are you?

 

For some time now our Company has been running CAS and it Works great but now we have a new requirement: to integrate confluence with jira but not through CAS, with local users and still have CAS for other users. Now as I was told by the Atlassian support this out of support scope because it’s third party application.

I’m new to CAS but we managed to decompile the jar with the Jira44CasAuthenticator.java and saw that a Null pointer that it was giving us is supposedly from this class.

We want to make a small change on it and re-create the jar file to test it, but when we create a java project we are missing several packages.

Can you please tell us how can we make a compiling project to make changes on this class?

 

I’m sorry for my english, it’s not my first language.

 

Thanks in advanced!

 

Alberto Cabello Sánchez

unread,
Aug 22, 2018, 4:10:06 AM8/22/18
to cas-...@apereo.org, Sabrina Lanzotti
On Mon, 20 Aug 2018 07:52:34 -0700 (PDT)
Sabrina Lanzotti <shd...@gmail.com> wrote:

> I’m new to CAS but we managed to decompile the jar with the
> Jira44CasAuthenticator.java and saw that a Null pointer that it was
> giving us is supposedly from this class.
>
> We want to make a small change on it and re-create the jar file to test
> it, but when we create a java project we are missing several packages.
>
> Can you please tell us how can we make a compiling project to make changes
> on this class?

I'm not sure this is the "best practice", but if you can use Git and Maven,
you can try this:

Clone the java-cas-client repository:

git clone https://github.com/apereo/java-cas-client/

then go into the Atlassian-related area:

cd java-cas-client/cas-client-integration-atlassian/

make the desired changes in src/main/java/org/jasig/cas/client/integration/atlassian/Jira44CasAuthenticator.java and re-build your .jar:

mvn clean package

Maven should take care of all the needed dependency packaegs. If everything goes
OK, you will have a .jar in target/. Mine is cas-client-integration-atlassian-3.5.1-SNAPSHOT.jar

Hope that helps,

Alberto
Reply all
Reply to author
Forward
0 new messages