Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Make sure csrf tokens match on client and server. #527

Merged
merged 3 commits into from
Jul 23, 2014

Conversation

carlosmunoz
Copy link
Member

This pull request is an improvement when loading up the web editor. In some scenarios, the editor would not detect an authenticated user and would redirect to the login page, which in turn would redirect to the dashboard. This pull request corrects this.

@@ -81,6 +82,7 @@ public void onFailure(final Throwable caught) {
}
if (caught instanceof AuthenticationError
|| caught instanceof InvalidTokenError) {
Log.error("Invalid Token error ("+ sessionId + ")", caught);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should split these two conditions, and have separate log messages for each.

@carlosmunoz
Copy link
Member Author

@seanf Ready for a second round of reviewing.

@seanf
Copy link
Contributor

seanf commented Jul 8, 2014

Looks good.

@carlosmunoz
Copy link
Member Author

@definite Do you mind testing this one?

@definite
Copy link
Member

definite commented Jul 8, 2014

@djansen-redhat
Copy link
Contributor

@zanata-jenkins retest this please

@djansen-redhat
Copy link
Contributor

✅ Looks good to me

djansen-redhat added a commit that referenced this pull request Jul 23, 2014
Make sure csrf tokens match on client and server.
@djansen-redhat djansen-redhat merged commit ebcc32a into release Jul 23, 2014
@carlosmunoz carlosmunoz deleted the gwt-token-mismatch branch July 23, 2014 05:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants