Uh oh!
There was an error while loading. Please reload this page.
[ZEPPELIN-1125] Application does not logout user when authcBasic and ./grunt serve is used - #1140
[ZEPPELIN-1125] Application does not logout user when authcBasic and ./grunt serve is used#1140prabhjyotsingh wants to merge 2 commits into
./grunt serve is used#1140Conversation
prabhjyotsingh
commented
Jul 6, 2016
@corneadoug, have made a fix for #1071 (comment). Can you please review. |
corneadoug
commented
Jul 7, 2016
@prabhjyotsingh Thanks, I will test that |
r-kamath
commented
Jul 7, 2016
LGTM |
| } | ||
| @POST | ||
| @GET |
There was a problem hiding this comment.
Any reason to change logout from POST to GET? I dont think its aligned with HTTP standard.
./grunt serve is used./grunt serve is usedcorneadoug
commented
Jul 8, 2016
@prabhjyotsingh I got it fixed by only replacing the logout function in the front-end with: This could probably use some ngToast when error |
a326e30 to
04a2affCompare@corneadoug I tried your approach, it didn't worked for me, rest other review comments are implemented. |
corneadoug
commented
Jul 8, 2016
@prabhjyotsingh Let me try again |
@prabhjyotsingh You are calling I tried both Chrome and Firefox |
prabhjyotsingh
commented
Jul 8, 2016
Yes, basic-auth was not getting logout on first call, hence I had to call it twice. |
prabhjyotsingh
commented
Jul 9, 2016
@corneadoug Shall I merge this, if it works for you ? |
corneadoug
commented
Jul 10, 2016
@prabhjyotsingh Basic Auth is getting logout after only one call.
I don't see your point, you still have to handle an action after getting the message from the API, whether it is UNAUTHORIZED or OK. If the API action is successful, it should be OK. |
Kind of strange it, doesn't work for me. Have attached gif's where in console, first I'm trying to call it once, then twice, and on calling it twice, it logout. Also after making API return OK instead of UNAUTHORIZED, |
corneadoug
commented
Jul 11, 2016
@prabhjyotsingh I made a test PR with gif of Chrome, Firefox, Safari #1159 |
prabhjyotsingh
commented
Jul 14, 2016
@corneadoug should we merge this, so that, |
corneadoug
commented
Jul 14, 2016
@prabhjyotsingh LGTM |
…`./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> Closesapache#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?
Creating this issue from this comment, Application does not logout user when authcBasic is used and process was running with
grunt serveWhat type of PR is it?
[Bug Fix]
What is the Jira issue?
How should this be tested?
Run web-app as
grunt serveand configure shiro auth to useauthcBasic, and then try to logout.Screenshots (if appropriate)
Questions: