Hello!

I think you should do securityCtx.subject().login().

Is it available to you?

Regards,
-- 
Ilya Kasnacheev


вт, 3 мар. 2020 г. в 05:24, Devin Bost <[email protected]>:

> I'm trying to figure out how to obtain the client username from inside the
> GridSecurityProcessor's authorize method, but the only place where I can
> find the correct username is here:
>
> ((UserSecurityContextImpl)
> securityCtx).authContext.credentials().getLogin()
>
> The problem, however, is that authContext is a private field, so I'd
> either need to modify the field permission in a fork of Ignite, or I'd need
> to use reflection to change the accessibility, which will result in very
> bad performance.
>
> Is there another way to obtain the actual username?
>
> Thanks,
> Devin G. Bost
>

Reply via email to