[ZEPPELIN-1052] Application does not logout user when authcBasic is used#1071
[ZEPPELIN-1052] Application does not logout user when authcBasic is used#1071prabhjyotsingh wants to merge 2 commits intoapache:masterfrom
Conversation
|
Tested this branch with both authc and authcBasic and logout works well. LGTM |
|
Yeah it works well. LGTM 👍 |
|
Verified and It works.LGTM from me too |
|
Merging this if no more discussion. |
### What is this PR for? This PR is WRT to [this](http://apache-zeppelin-users-incubating-mailing-list.75479.x6.nabble.com/Fwd-Authentication-in-zeppelin-td3354.html) mail thread (Authentication in zeppelin) Where in if authcBasic mechanisim is used then on clicking logout, the user doesn't gets logout. ### What type of PR is it? [Bug Fix] ### Todos * [x] - set username and password false on logout ### What is the Jira issue? * [ZEPPELIN-533](https://issues.apache.org/jira/browse/ZEPPELIN-1052) ### How should this be tested? In shiro.ini conf set `/** = authcBasic`, then start the zeppelin server. - try login as admin/password1 - now try to logout (this should work) ### Questions: * Does the licenses files need update? n/a * Is there breaking changes for older versions? n/a * Does this needs documentation? n/a Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closes #1071 from prabhjyotsingh/ZEPPELIN-1052 and squashes the following commits: 6f4dd09 [Prabhjyot Singh] force authcBasic by setting credentials as false:false b3d6935 [Prabhjyot Singh] set username and password false on logout (cherry picked from commit 8154c87) Signed-off-by: Prabhjyot Singh <prabhjyotsingh@gmail.com>
|
@prabhjyotsingh Thanks for the fix! I was able to reproduce error that logout doesn't work by following:
|
|
@minahlee, Thank you for review this. With default shiro.ini i.e. Under And before merging this PR, when I saw travis log, it was failing for these two, and I assumed both were unrelated. I'll open up a HOTFIX now, to fix CI. |
|
@prabhjyotsingh Thanks for quick response. The steps I wrote was just for reproducing the case that logout action doesn't work because I couldn't reproduce it in my laptop with shiro setting in And yes I agree that showing login button with insufficient privileges doesn't make much of sense. This seems to happen because it is trying to find |
|
@prabhjyotsingh I got it working on localhost:8080, but not using |
|
@corneadoug, will surly look into it, in the mean while have created this a new jira for tracking the same https://issues.apache.org/jira/browse/ZEPPELIN-1125 |
…`./grunt serve` is used ### What is this PR for? Creating this issue from [this](#1071 (comment)) comment, Application does not logout user when authcBasic is used and process was running with `grunt serve` ### What type of PR is it? [Bug Fix] ### What is the Jira issue? * [ZEPPELIN-1125](https://issues.apache.org/jira/browse/ZEPPELIN-1125) ### How should this be tested? Run web-app as `grunt serve` and configure shiro auth to use `authcBasic`, and then try to logout. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closes #1140 from prabhjyotsingh/ZEPPELIN-1125 and squashes the following commits: 04a2aff [Prabhjyot Singh] remove unrequired params from response, revert to post 986d549 [Prabhjyot Singh] Application does not logout user when authcBasic and running on a different host/port
…`./grunt serve` is used ### What is this PR for? Creating this issue from [this](#1071 (comment)) comment, Application does not logout user when authcBasic is used and process was running with `grunt serve` ### What type of PR is it? [Bug Fix] ### What is the Jira issue? * [ZEPPELIN-1125](https://issues.apache.org/jira/browse/ZEPPELIN-1125) ### How should this be tested? Run web-app as `grunt serve` and configure shiro auth to use `authcBasic`, and then try to logout. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closes #1140 from prabhjyotsingh/ZEPPELIN-1125 and squashes the following commits: 04a2aff [Prabhjyot Singh] remove unrequired params from response, revert to post 986d549 [Prabhjyot Singh] Application does not logout user when authcBasic and running on a different host/port (cherry picked from commit 89b71ca) Signed-off-by: Mina Lee <minalee@apache.org>
…`./grunt serve` is used ### What is this PR for? Creating this issue from [this](apache#1071 (comment)) comment, Application does not logout user when authcBasic is used and process was running with `grunt serve` ### What type of PR is it? [Bug Fix] ### What is the Jira issue? * [ZEPPELIN-1125](https://issues.apache.org/jira/browse/ZEPPELIN-1125) ### How should this be tested? Run web-app as `grunt serve` and configure shiro auth to use `authcBasic`, and then try to logout. ### Screenshots (if appropriate) ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: Prabhjyot Singh <prabhjyotsingh@gmail.com> Closes apache#1140 from prabhjyotsingh/ZEPPELIN-1125 and squashes the following commits: 04a2aff [Prabhjyot Singh] remove unrequired params from response, revert to post 986d549 [Prabhjyot Singh] Application does not logout user when authcBasic and running on a different host/port


What is this PR for?
This PR is WRT to this mail thread (Authentication in zeppelin)
Where in if authcBasic mechanisim is used then on clicking logout, the user doesn't gets logout.
What type of PR is it?
[Bug Fix]
Todos
What is the Jira issue?
How should this be tested?
In shiro.ini conf set
/** = authcBasic, then start the zeppelin server.Questions: