CAS 6.1 : configure json service management to operate with an http application

39 views
Skip to first unread message

ratm

unread,
Nov 7, 2019, 10:58:04 AM11/7/19
to CAS Community
Hello,

How to configure cas 6.1  json service management (cas-overlay-template-6.1) to operate with an http application ?


My json file :

{
 
/*
 *      Service jenkins
 */


 
"@class" : "org.apereo.cas.services.RegexRegisteredService",
 
"id" : 1,
 
"name" : "Jenkins",
 
"serviceId" : "^http://my-jenkins1-server.fr:8080.*$",
 
"evaluationOrder" : 1,
 
"requiredAttributes":["uid", "mail"]
}



It seems cas returns an https response to jenkins.

Thanks in advance for any responses.

Cheers,
  Anthony

Andy Ng

unread,
Nov 7, 2019, 10:24:54 PM11/7/19
to CAS Community
Hi Anthony,

Your serviceId should return http only back to CAS, seems weird it return back https.
- Are you sure jenkins didn't automatically transform your http request into https
- You should capture your network tab to check out the network.


BTW, Your serviceID seems too loose, I can do something like this:

Your regex:
^http://my-jenkins1-server.fr:8080.*$

This is but should not be valid
http://my-jenkins1-server.fr:8080.something.can.be.appended.here/

Changing your serviceId to something like this is preferable:

See if the above helps.

Cheers!
- Andy

ratm

unread,
Nov 8, 2019, 10:32:24 AM11/8/19
to CAS Community
Hello,

I found solution.

I need to import cer file into java cacerts file who run jenkins to recongnize CAS https certificate.
Cheers,
  Anthony
Reply all
Reply to author
Forward
0 new messages