Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
lroofthooft
Partner - Contributor
Partner - Contributor

Virtual Proxy JWT -> attributes to Qliksense

Hi All, 

we have configured our QlikSense with a Virtual Proxy for all customers authenticating over JWT . 

this all works ...recently we had the language added to the JSON payload , I'm now looking into pickung up that Language into the scripts for the load editor..  

I added JWT attribute Mapping ... I cannot find back any detail documentation on how to incorporate that Qliksense attribute into my load scripts (to alter output to the required language) 

in the online help , i can find info on setting up virtual proxy (that works) , under authentication , the last property is about JWT attibure mapping , saying

Click Add new attribute to map JWTattributes to Qlik Sense attributes. If the name value is enclosed in brackets, that value is used as a constant attribute value: [example] gives the constant attribute value 'example'.

"

 

any help appreciated 

 

Luc 

 

4 Replies
kishorj1982
Creator II
Creator II

Hi,

 

For JWT configuration you have to use same deomain id, username whatever used in signature otherwise it throws an error.

 

Thanks

lroofthooft
Partner - Contributor
Partner - Contributor
Author

Authentication over JWT works . I only need to language as from the JSON payload beenig mapped form the JWT to QLiksense, trying by adding a mapping into the virtual proxy but no succes picking up the content on the qliksense side . 

e.g. this is a sample payload 

{
"name": "abc abc",
"userId": "abc.abc",
"email": "info@example.com",
"language": "en",
"roles": [],
"exp": 1542274800
}

i then added a mapping to the VP , JWT attribute 'language'  to Qliksense attribute 'USER_ISO_LANGUAGE'  , as then to use that in a sql where clause in the load editor .

 

thanks 

Luc 

lroofthooft
Partner - Contributor
Partner - Contributor
Author

Hi , 

the authentication is working , we only extended the payload with 'language', i now want that 'language' to be available for my data load editor (script) so i can dynamiccaly load SQL with a where clause .

 

hence i mapped the attribute in the VP , thinking the VP would handover the JWT language to the qliksense USER_ISO_LANGUAGE , i however cannot call it back form the data_load_editor  ...

regs

Luc 

gdabrowski
Contributor
Contributor

Documentation is very poor about attribute mappings in JWT. I've found somewhere information that mapped attributte (USER_ISO_LANGUAGE) is available as user.environment.USER_ISO_LANGUAGE in security rules.

I still cannot figure it out how to make a basic thing,  how to set username. I've tried to pass name in payload, map name as userName in attribute mapping, bu it doesn't work 😞