Skip to content

Improving backend - #1

Merged
Pompeu merged 12 commits into
developfrom
improving-backend
Sep 29, 2015
Merged

Improving backend#1
Pompeu merged 12 commits into
developfrom
improving-backend

Conversation

@linyatis

Copy link
Copy Markdown
Owner

Many updates to improve backend code.

José Filipe Lyra added 12 commits September 28, 2015 15:42
… java-jwt fire any exception now it is encapsulated in this one.

The java-jwt throws some exceptions when the token is invalid. Because of that we need to use this TokenException to catch when token is invalid.
…ted.

The sets of content type and character encoding were moved to begin of method because it is the same in "if" and "else" statements.
…ecessary just if we need to pass headers to next filter (or servlet).

Added try catch to JWTUtil.decode, because we need to know when token is invalid (and send error to the frontend).
…ends with "login". If yes it just go to next filter, if not, it does the filter logic.
@linyatis

Copy link
Copy Markdown
Owner Author

@Pompeu, I made a lot of changes in the backend. Take a look on it and give your review :)
I think that the best is to comment directly here or in the code.

Pompeu pushed a commit that referenced this pull request Sep 29, 2015
Improving backend, nice pr, now if i change anyting i will made a pr too.
@Pompeu
Pompeu merged commit 444465a into develop Sep 29, 2015
@linyatis
linyatis deleted the improving-backend branch September 29, 2015 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants