spring-projects / spring-security

Spring Security
http://spring.io/projects/spring-security
Apache License 2.0
8.84k stars 5.91k forks source link

spring-security-cas use in webflux #5887

Open rainbowJson opened 6 years ago

rainbowJson commented 6 years ago

Do you have plans to support spring-security-cas use in webflux?

I have use webflux in netty container

rwinch commented 6 years ago

Thanks for the report @rainbowJson! We would probably need a reactive CAS client. Does one exist?

rainbowJson commented 6 years ago

I haven't found support for reactive client CAS for the time being.

I want to support CAS in spring-cloud-gateway.

rwinch commented 6 years ago

I wouldn't be apposed to doing this, but I think we will need reactive support from the CAS libraries to make this practical.

thirunar commented 5 years ago

@rwinch is there an update on this? I see, there is no open issue or pull request in CAS libraries. Is there a workaround in spring-security?

pszemus commented 4 years ago

I was trying to use spring-security-cas in my webflux application and I prepared a list of missing implementations:

description existing blocking implementation missing reactive implementation
Entry point to commence authentication via the JA-SIG CAS on authentication exception CasAuthenticationEntryPoint that implements AuthenticationEntryPoint class that implements ServerAuthenticationEntryPoint (could be based on RedirectServerAuthenticationEntryPoint)
Filter that processes a CAS service ticket CasAuthenticationFilter class that implements WebFilter
rwinch commented 4 years ago

Thanks. We still need a reactive CAS client. Is anyone aware of one? If not, could someone create a ticket w/ CAS?

johnwonder commented 3 years ago

We are also need a reactive CAS client

ArvinHu commented 3 years ago

I have use webflux in netty container ,too. Have you solved the problem yet?

pszemus commented 3 years ago

@ArvinHu I switched to oauth2, as both: CAS and reactive spring-boot-starter-oauth2-client supports it

wybaby168 commented 1 month ago

I have implemented a simple webflux client based on jasig's cas-client.jar, which is already online in the project. You can try it. ❤️ See spring-webflux-cas-client-starter