Re: cluster node attribute based authorization

2016-06-07 Thread Alexei Scherbakov
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 
:

> 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


cluster node attribute based authorization

2016-06-06 Thread Anand Kumar Sankaran
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