Can't get nextUrl to work

Hi All,

I’ve followed the instructions in the Kibana docs to set up the nextUrl to redirect after authenticating with jwt.

My request URL:

http://10.94.155.84:5601/login?nextUrl=%2Fapp%2Fkibana%23%2Fvisualize&jwt=<>

I see that I get a 302 response with a redirect to / (header location: /) and a rorCookie.

Then the next request to /, I don’t see any mention of nextUrl but instead another redirect to /spaces/enter, then from there another 302 to /app/kibana, not the nextUrl I instructed.

How can I get this to work so I can embed an iframe in my application?

I’m running ES & Kibana 7.5.1. Thanks.

Hi @jgorlin,
If you want people to land always in the same app in Kibana, you should directly use:

kibana.defaultAppId:

Default: “home” The default application to load.

The nextUrl should work though. I will add a task in Jira to have a look at this, and notify this thread.

Thanks for the help, Simone.

I’m actually trying to redirect directly to embedded dashboards inside iframes, my example maybe wasn’t the best one. Can you please try nextUrl and make sure there is no regression here in the latest RoR code or in ES/Kibana 7.5.1?

I can help troubleshoot as well if you can give me some pointers on where to look.

Hi @jgorlin, I found the root cause. Will send you the build ASAP.

Please try this one: https://readonlyrest-data.s3.eu-west-1.amazonaws.com/build/1.19.0-pre1/trial/20200109/enterprise/readonlyrest_kbn_enterprise-1.19.0-pre1-20200109_es7.5.1.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJEKIPNTOTIVGQ4EQ%2F20200109%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20200109T154810Z&X-Amz-Expires=604800&X-Amz-Signature=e9d1368b0d16b4f636f0d94fb06b5ef02e9e8d43ae4643074c4b10610c6d2ffd&X-Amz-SignedHeaders=host

For google: this fix is available in ROR 1.19.0 onwards.

Thanks for getting to the bottom of this. This plugin you have linked to is only ~7MB. The other one I installed successfully was closer to 60MB. What do I need to do to get this one to install?

root@hxes-01:/home/gorlinj# /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///home/gorlinj/readonlyrest_kbn_enterprise-1.19.0-pre1-20200109_es7.5.1.zip
-> Downloading file:///home/gorlinj/readonlyrest_kbn_enterprise-1.19.0-pre1-20200109_es7.5.1.zip
[=================================================] 100%  
Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-8597628765548148073/plugin-descriptor.properties

@jgorlin the fix is in the Enterprise plugin for Kibana, so it’s a Kibana plugin, not Elasticsearch.

Your fix works! Thanks for hunting it down and resolving it quickly. Looking forward to moving into production once this fix is officially released.

1 Like

Excellent, we will release 1.19.0 in a matter of days :slight_smile: