Giter VIP home page Giter VIP logo

Comments (5)

kakawait avatar kakawait commented on June 11, 2024

@igorhara Thank you for reporting. I'm not totally sure to understand completely your needs. So I have some questions:

Are you aware that you're able to customize and add/configure your own implementation of org.jasig.cas.client.validation.TicketValidator which is responsible to validate ticket. By registring a bean that implement org.jasig.cas.client.validation.TicketValidator.

Because CasTicketValidatorConfiguration will only be configured if you're not providing your own TicketValidator bean.

So if somewhere in your configuration you define a new bean of

@Bean
TicketValidator myCustomTicketValidator() {
    return new MyCustomTicketValidator();
}

Where MyCustomTicketValidator is implementing TicketValidator.

Does it not enough for you?

from cas-security-spring-boot-starter.

igorhara avatar igorhara commented on June 11, 2024

from cas-security-spring-boot-starter.

kakawait avatar kakawait commented on June 11, 2024

@igorhara So why do you not creating a bean extending Cas30ServiceTicketValidator (or whatever the version, depending of your needs) and then overriding protected Map<String, Object> extractCustomAttributes(final String xml) method?

from cas-security-spring-boot-starter.

igorhara avatar igorhara commented on June 11, 2024

That is what I am doing, but I had to read the source code in order to be able to configure my custom TIcketValidator correctly.

from cas-security-spring-boot-starter.

kakawait avatar kakawait commented on June 11, 2024

Ok but currently the starter is more about integrating CAS client inside Spring boot & Security app.

I don't mean that this feature request will never resolved but since there are missing few integrations (Spring boot 2, RestTemplate, tests & coverage). To be honest with you, since it's possible to override by yourself the TicketValidator, I don't think I will work on that top priority on that request.

Feel free to propose PR.

from cas-security-spring-boot-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.