kakawait / cas-security-spring-boot-starter

Spring boot starter for Apereo CAS client fully integrated with Spring security
MIT License
153 stars 45 forks source link

Configuration question #143

Closed dguerrar closed 4 years ago

dguerrar commented 4 years ago

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!!

dguerrar commented 4 years ago

solved. Error in the request

sorry