qlik-oss / core-qix-session-placement-service

Example Qlik Associative Engine session service used for session placement in the Qlik Core use case Assisted Prescription (also known as Custom Analytics)
MIT License
2 stars 1 forks source link

Pass JWT to qixEngine #14

Closed axelssonHakan closed 6 years ago

axelssonHakan commented 7 years ago

The routes: https://github.com/qlik-ea/qliktive-qix-session-service/blob/master/src/index.js#L42 https://github.com/qlik-ea/qliktive-qix-session-service/blob/master/src/index.js#L48 Has to pick up the JWT from the request (if present) and include it in the header for Enigma.js https://github.com/qlik-ea/qliktive-qix-session-service/blob/master/src/DocPrepper.js#L26

FredrikFolkesson commented 6 years ago

@axelssonHakanI think this done today? The JWT must be sent to the engine for it to accept the connection? The auth service puts the JWT in redis, and openresty does the swap from cookie to jwt in the header?

peol commented 6 years ago

Yes: https://github.com/qlik-ea/qliktive-qix-session-service/blob/master/src/DocPrepper.js#L21

axelssonHakan commented 6 years ago

:heavy_check_mark: