Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
e548e344
There was an error fetching the commit references. Please try again later.
Commit
e548e344
authored
7 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Skip JwtTokenFilter for /v2
parent
8b649602
1 merge request
!89
Foundation for development of version 3.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/security/jwt/JwtTokenFilter.java
+6
-1
6 additions, 1 deletion
...main/java/de/thm/arsnova/security/jwt/JwtTokenFilter.java
with
6 additions
and
1 deletion
src/main/java/de/thm/arsnova/security/jwt/JwtTokenFilter.java
+
6
−
1
View file @
e548e344
...
@@ -23,7 +23,12 @@ public class JwtTokenFilter extends GenericFilterBean {
...
@@ -23,7 +23,12 @@ public class JwtTokenFilter extends GenericFilterBean {
@Override
@Override
public
void
doFilter
(
final
ServletRequest
servletRequest
,
final
ServletResponse
servletResponse
,
final
FilterChain
filterChain
)
throws
IOException
,
ServletException
{
public
void
doFilter
(
final
ServletRequest
servletRequest
,
final
ServletResponse
servletResponse
,
final
FilterChain
filterChain
)
throws
IOException
,
ServletException
{
String
jwtHeader
=
((
HttpServletRequest
)
servletRequest
).
getHeader
(
JWT_HEADER_NAME
);
final
HttpServletRequest
httpServletRequest
=
(
HttpServletRequest
)
servletRequest
;
if
(
httpServletRequest
.
getRequestURI
().
startsWith
(
"/v2/"
))
{
filterChain
.
doFilter
(
servletRequest
,
servletResponse
);
return
;
}
String
jwtHeader
=
httpServletRequest
.
getHeader
(
JWT_HEADER_NAME
);
if
(
jwtHeader
!=
null
)
{
if
(
jwtHeader
!=
null
)
{
JwtToken
token
=
new
JwtToken
(
jwtHeader
);
JwtToken
token
=
new
JwtToken
(
jwtHeader
);
try
{
try
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment