kakawait/cas-security-spring-boot-starter

Configuration question

dguerrar opened this issue · 1 comments

Dear all,

I am trying to integrate this library intro my project. I just add the dependency into my pom and put the following lines in the properties.

security.cas.enabled= true
security.cas.key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
security.cas.server.base-url=https://XXXXXXXXXXX.com/cas
security.cas.service.base-url=http://localhost:8081
security.cas.server.protocol-version =2

Then, I tried with Postman to get a TGT and then a ST. Then, I launch a request to

http://localhost:8081/data/findStuff?ticket=ST-19420-a4IMvTKLQCULPnWuRzZr-XXXXXXX

But I the spring boot console I can see an exception:

Caused by: org.jasig.cas.client.validation.TicketValidationException:
ticket 'ST-19420-a4IMvTKLQCULPnWuRzZr-XXXXXXX' does not match supplied service. The original service was 'http://localhost:8081' and the supplied service was 'http://localhost:8081/data/findStuff'.

and later:

Caused by: org.jasig.cas.client.validation.TicketValidationException:
ticket 'ST-19420-a4IMvTKLQCULPnWuRzZr-XXXXXXX' does not match supplied service. The original service was 'http://localhost:8081' and the supplied service was 'http://localhost:8081/error'.

Any idea? Did I miss something in the properties file?

Thanks and good job!!

solved. Error in the request

sorry