Hi, I have cas server and a client with auto configure spring boot application. I did it like this https://github.com/UniconLabs/bootiful-cas-client. Also i have an authorization application and it provides rest service for roles of users. I want to use this rest service, when user logged in cas-client appliation.
It is easy for spring mvc application. I earlier did all configuration on another application and i created casAuthenticationProvider bean. After i've set up this bean properties like this casAuthenticationProvider .setAuthenticationUserDetailsService(userDetailsService()); . I created a UserDetailService that laod autority to user object. Is there another way to do through .yml files or bean configuration? I prefer yml files like this. cas: server-url-prefix: https://localhost:10100/cas server-login-url: https://localhost:10100/cas/login client-host-url: https://localhost:8443 proxy-receptor-url: https://localhost:8443/j_spring_cas_security_proxyreceptor use-session: false accept-any-proxy: true authentication-url-patterns: [/protected, /protected2] authorization-url-patterns: [/ https://localhost:10101/load_authority?username] //it is better for simple configuration If auto configure is difficult for bootiful-cas-client, i want to learn how to configure load user authorities. I tried to autowired some object for this bean. But i couldn't get serviceProperties and ticketValidator. @Bean public CasAuthenticationProvider casAuthenticationProvider() { CasAuthenticationProvider casAuthenticationProvider = new CasAuthenticationProvider(); //load the authorities casAuthenticationProvider.setServiceProperties(serviceProperties); casAuthenticationProvider.setTicketValidator(ticketValidator); casAuthenticationProvider.setStatelessTicketCache(statelessTicketCache()); casAuthenticationProvider.setKey(CAS_PROVIDER_KEY); casAuthenticationProvider .setAuthenticationUserDetailsService(userDetailsService()); return casAuthenticationProvider; } -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/6586d904-87a4-4197-b89c-f74664a855fb%40apereo.org.
