cas 5.x 文档有问题?

https://apereo.github.io/cas/5.1.x/installation/Configuring-Custom-Authentication.html

文档中提供的注册bean的构造方法如何实现呢?


    @Bean
    public AuthenticationHandler customAuthenticationHandler() {
        final CustomAuthenticationHandler handler = new CustomAuthenticationHandler();


        /*
            Configure the handler by invoking various setter methods.
            Note that you also have full access to the collection of resolved CAS settings.
            Note that each authentication handler may optionally qualify for an 'order`
            as well as a unique name.
        */
        return handler;
    }
阅读 3.6k
1 个回答
新手上路,请多包涵

@Autowired
@Qualifier("servicesManager")
private ServicesManager servicesManager;

return new CustomerHandler("customerHandler", servicesManager, new DefaultPrincipalFactory(), 1);

cas的文档真的很不友好,学起来很难受

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题