Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-jams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-jams
Commits
84924c05
Commit
84924c05
authored
4 years ago
by
William Enright
Committed by
Larbi Gharib
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed OCSP endpoint being blocked by api filter
Change-Id: Ib6b2d258777bc5b205b5199c136f003811213a25
parent
2ea96130
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jams-server/src/main/java/net/jami/jams/server/servlets/filters/ApiFilter.java
+4
-1
4 additions, 1 deletion
...java/net/jami/jams/server/servlets/filters/ApiFilter.java
with
4 additions
and
1 deletion
jams-server/src/main/java/net/jami/jams/server/servlets/filters/ApiFilter.java
+
4
−
1
View file @
84924c05
...
...
@@ -56,9 +56,12 @@ public class ApiFilter implements Filter {
}
else
{
boolean
authsuccess
=
false
;
boolean
isLogin
=
false
;
boolean
isOCSPCheck
=
false
;
if
(
request
.
getServletPath
().
contains
(
"login"
))
isLogin
=
true
;
else
if
(
request
.
getServletPath
().
contains
(
"ocsp"
))
isOCSPCheck
=
true
;
else
authsuccess
=
doAuthCheck
(
request
);
if
(
authsuccess
||
isLogin
)
{
if
(
authsuccess
||
isLogin
||
isOCSPCheck
)
{
filterChain
.
doFilter
(
servletRequest
,
servletResponse
);
}
else
{
TomcatCustomErrorHandler
.
sendCustomError
(
response
,
401
,
"You are not authenticated!"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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