Hi there,
thanks for sharing your findings! We have run into a similar issue that is possibly caused by the same thing:
Via a custom @RestController, we provide a page on a custom path, say /mypage. And since CAS 7.0.x, we get error 403 when accessing this page. It looks like CAS (Spring??) no longer lets you access contexts which are not explicitly listed. In CAS, this seems to be resolved by providing a bean of type
CasWebSecurityConfigurer, e.g.:
@Bean
@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
public CasWebSecurityConfigurer<Void> customPagesEndpointsConfigurer() {
return new CasWebSecurityConfigurer<>() {
@Override
public List<String> getIgnoredEndpoints() {
return List.of("/mypage");
}
};
}
Technically, instead of that, we could just change the URL to /v1/mypage for example, because /v1 is already listed by CAS out-of-the-box.
It would be great if someone could confirm these findings.
Regards
Petr