No active session to apply key to

Hi.

Using ES, kibana, search-guard and search-guard-kibana-plugin - All v5.2.1

Im trying to set new attribute in the session, with:

request.auth.session.set('lastAccess', currentAccessTime);

the result is an error:

log [18:12:07.300] [error][searchguard] An error occurred while computing auth headers, clearing session: Error: No active session to apply key to

The request.auth.artifacts is undefined.

Any idea?