Spring Reactive Client Logout Problem

27 views
Skip to first unread message

denizg

unread,
Nov 3, 2020, 5:32:14 AM11/3/20
to CAS Community
Hello,

I have reactive spring client and CAS server. I can't integrate them directly, because java cas-client library is not reactive, and if i import that dependency, my spring project doesn't work. because imported library is dependent on MVC/servlet stack and it doesn't work at reactive base.

So, I integrate them not directly, but by OpenID connect. I have configured my CAS server as also OAuth server, and it works as expected.

But, I cannot logout from spring client. Because, logout filters and related classes are not configured at reactive spring client, and these jobs were done by java cas-client library.

So, how can i logout from my reactive spring client? Any idea or any advice? Does someone encounter same problem?

Many thanks.

Ray Bon

unread,
Nov 3, 2020, 11:16:34 AM11/3/20
to cas-...@apereo.org
Denzig,

I assume you are talking about single logout, where cas server will send a logout request to your application.
With a 'normal' cas login session, the service ticket is sent to the application in the logout request (POST). It is up to the application to associate that ST with a user's session. The java cas-client filter will terminate the local user session when it receives the logout request.

I have not used OIDC, and have not looked at the payload. Check to see what cas server sends on a logout. You can also set the logout endpoint in the service definition (by default it is the one used during log in).


Ray

On Tue, 2020-11-03 at 02:32 -0800, denizg wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations.
Reply all
Reply to author
Forward
0 new messages