Re: Rewrite rules necessary for knox sso?

2018-07-16 Thread Christopher Jackson
Larry, I found the culprit! It appears that the ordering of policies matters in service.xml. I modified mine to: It was originally: I now see that the /u

Re: Rewrite rules necessary for knox sso?

2018-07-16 Thread Christopher Jackson
Hey Larry, After some more debugging I was able to gather the following logs that show my problem: 2018-07-16 11:02:13,622 DEBUG hadoop.gateway (GatewayFilter.java:doFilter(116)) - Received request: GET /myservice/myapp/ 2018-07-16 11:02:13,625 DEBUG webapp.WebAppClassLoader (WebAppClassLoader

Re: Rewrite rules necessary for knox sso?

2018-07-12 Thread larry mccay
Again, Christopher - I verified with HDP sandbox which is 2.6.5 and am seeing expected behavior. SSOCookieProvider is redirecting to KnoxSSO with an originalUrl query param that reflects the gateway URL for webhdfs. I don't know why you are seeing the behavior that you are describing. I am glad t

Re: Rewrite rules necessary for knox sso?

2018-07-12 Thread larry mccay
Hi Christopher - Proxying and SSO together may require a rewrite rule. I'll look at what SSO Cookie Provider is doing though. I would expect originalUrl to be the gateway url from there. Thanks, --larry On Thu, Jul 12, 2018, 4:17 PM Christopher Jackson < jackson.christopher@gmail.com> wrote

Re: rewrite rules

2016-11-22 Thread Alan Miller
been nicer to have everything in knox instead. -- Alan From: larry mccay Reply-To: "user@knox.apache.org" Date: Tuesday, November 22, 2016 at 4:41 PM To: "user@knox.apache.org" Subject: Re: rewrite rules Hi Alan - That is an interesting question... So, basically, h

Re: rewrite rules

2016-11-22 Thread larry mccay
Hi Alan - That is an interesting question... So, basically, how do we make single service topologies default the context path to the single service route. I believe if you were to want to hack around in the existing files that you would need change the routes and all the rewrite rules to be compl