Finally, I see the log "2023-01-29 15:00:47,966 DEBUG [org.apereo.cas.web.security.CasWebSecurityConfigurerAdapter] - <Configuring protocol endpoints [[/login**, /login/**, /logout**, /logout/**, /validate**, /validate/**, /serviceValidate**, /serviceValidate/**, /p3/serviceValidate**, /p3/serviceValidate/**, /proxyValidate**, /proxyValidate/**, /p3/proxyValidate**, /p3/proxyValidate/**, /proxy**, /proxy/**, /oauth2.0**, /oauth2.0/**, /v1**, /v1/**, /webjars/**, /themes/**, /js/**, /css/**, /images/**, /static/**, /error, /favicon.ico]] to exclude/ignore from http security>". Spring security filter this endpoint. It return to normal after I change testcontroller to login. On Sunday, January 29, 2023 at 2:41:34 PM UTC+8 Thomas Tong wrote:
> Hi, Everyone > I'm a new developer to CAS. I defined a spring boot controller as > below. > @Slf4j > @RestController > @RequestMapping("/testcontroller") > public class UserController { > > @Autowired > private UserService userService; > > @RequestMapping(value = "/name", method = RequestMethod.GET) > public String getName() > { > return "TestName"; > } > } > > I can get "TestName" in CAS6.6. But I got the message "You do not have > permission to view this page." after I access > http://localhost:8080/cas/testcontroller/name. Would you like to let > know how to exclude /testcontroller from cas validation in CAS7.0? Thank > you very much. > -- - 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 cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/21dcc302-fad5-4c50-b92a-3d4ec61c0303n%40apereo.org.