ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Scherbakov <alexey.scherbak...@gmail.com>
Subject Re: cluster node attribute based authorization
Date Tue, 07 Jun 2016 10:04:37 GMT
Hi,

Subscribe to

EventType.EVT_NODE_FAILED
EventType.EVT_NODE_LEFT

events [1]

[1] https://apacheignite.readme.io/docs/events

2016-06-06 20:18 GMT+03:00 Anand Kumar Sankaran <anand.sankaran@workday.com>
:

> All
>
>
>
> I implemented a ClusterNode.userAttributes() based authorization
> mechanism.  I used a JWT Token to establish trust (passed via the
> userAttribute). This works fine.
>
>
>
> The problem I have is that the JWT Token expires shortly after initial
> use.  Now, if the node leaves the cluster and joins it again, the JWT Token
> in that node would be invalid.
>
>
>
> How should I fix this?  Is there a callback I can implement when a node
> leaves a cluster that I can use to create a new JWT token and attach to it?
>
>
>
> Any guidance would be appreciated.
>
>
>
> --
>
> anand
>



-- 

Best regards,
Alexei Scherbakov

Mime
View raw message