How to set requestTenant throught jwt?

10 views
Skip to first unread message

Johnson C

unread,
Feb 1, 2018, 8:35:01 PM2/1/18
to Search Guard Community Forum
Version Info:
Elasticsearch version:6.1.2, Search Guard Version: 6.1.2; Kibana: 6.1.2;
JVM version: 1.8.0_131, Win 10;

Problem:

Can't set requestedTenant through jwt.



SG

unread,
Feb 2, 2018, 2:40:40 AM2/2/18
to search...@googlegroups.com
sgtenant is a http header you need to set. It has nothing to do with jwt.
See http://docs.search-guard.com/latest/kibana-multi-tenancy

> Am 02.02.2018 um 02:35 schrieb Johnson C <cheng.q...@gmail.com>:
>
> Version Info:
> Elasticsearch version:6.1.2, Search Guard Version: 6.1.2; Kibana: 6.1.2;
> JVM version: 1.8.0_131, Win 10;
>
> Problem:
>
> Can't set requestedTenant through jwt.
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Search Guard Community Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to search-guard...@googlegroups.com.
> To post to this group, send email to search...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/7466253b-6c3e-4059-9f90-e64c6c563950%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jochen Kressin

unread,
Feb 2, 2018, 5:15:31 AM2/2/18
to Search Guard Community Forum
What is the use case you are trying to implement? Do you want to set a specific tenant when accessing Kibana? 

You can set tenants also in the Kibana URL by adding the sg_tenant parameter to the URL:



On Friday, February 2, 2018 at 8:40:40 AM UTC+1, Search Guard wrote:
sgtenant is a http header you need to set. It has nothing to do with jwt.
See http://docs.search-guard.com/latest/kibana-multi-tenancy

> Am 02.02.2018 um 02:35 schrieb Johnson C <cheng.q...@gmail.com>:
>
> Version Info:
> Elasticsearch version:6.1.2, Search Guard Version: 6.1.2; Kibana: 6.1.2;
> JVM version: 1.8.0_131, Win 10;
>
> Problem:
>
> Can't set requestedTenant through jwt.
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Search Guard Community Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages