The approach we've ended up taking is to have a configuration class as 
follows:

@Configuration("myCasConfiguration")
@EnableConfigurationProperties(CasConfigurationProperties.class)
public class MyCasConfiguration implements WebMvcConfigurer {

    public void addViewControllers(ViewControllerRegistry registry) {
        // Map "/adminlogin to invalid location"
        registry.addRedirectViewController("/adminlogin", "notfound");
        registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
    }
}

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/1217afec-f60b-4df3-9756-ec08913bcee1%40apereo.org.

Reply via email to