[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 intoapache:masterfrom
./grunt serve is used#1140Conversation
|
@corneadoug, have made a fix for #1071 (comment). Can you please review. |
|
@prabhjyotsingh Thanks, I will test that |
|
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 used
|
@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
04a2aff
Compare
|
@corneadoug I tried your approach, it didn't worked for me, rest other review comments are implemented. |
|
@prabhjyotsingh Let me try again |
|
@prabhjyotsingh You are calling I tried both Chrome and Firefox |
|
Yes, basic-auth was not getting logout on first call, hence I had to call it twice. |
|
@corneadoug Shall I merge this, if it works for you ? |
|
@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, |
|
@prabhjyotsingh I made a test PR with gif of Chrome, Firefox, Safari #1159 |
|
@corneadoug should we merge this, so that, |
|
@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> 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?
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: