Hi,

Thanks for sharing info.
I am not using JDBC authentication, can this be done with File Based 
Authentication?
Also can you pls provide more info on decorate? What is the use of it?

Regards,
Umesh 

-----Original Message-----
From: Nick Couchman <[email protected]> 
Sent: Monday, December 16, 2019 7:50 PM
To: [email protected]
Subject: Re: Listing all active connections in custom auth provider

On Mon, Dec 16, 2019 at 3:51 AM Umesh Bhatt <[email protected]> wrote:

> Hi,
>
> I have MyCustomAuthenticationProvider class which is extending 
> SimpleAuthenticationProvider.
> Is it possible to get current logged in user context in this?
> I think this SimpleAuthenticationProvider::getuserContext() always 
> creates a new SimpleUserContext and doesn't return already created one.
> After this I want to list all active connections created by this user.
>
>
I think in order to do what you're trying to do - get active connections from 
another authentication module (JDBC, presumably), your custom extension module 
needs to decorate the existing JDBC extension, which will allow you to pull 
that information from the underlying extension and then use it as you like.

-Nick

Reply via email to