Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
Inovasi Daerah Master
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ghitha Dinan
Inovasi Daerah Master
Commits
6f833471
Commit
6f833471
authored
Oct 29, 2021
by
Ghitha Dinan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file directory fixing
parent
19ac4549
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
TokenInterceptor.kt
...ang/inovasi/daerah/master/interceptor/TokenInterceptor.kt
+2
-4
No files found.
src/main/kotlin/id/co/sangkuriang/inovasi/daerah/master/interceptor/TokenInterceptor.kt
View file @
6f833471
...
...
@@ -9,8 +9,6 @@ import id.co.sangkuriang.inovasi.daerah.master.constant.*
import
id.co.sangkuriang.inovasi.daerah.master.helpers.RequestHelpers
import
id.co.sangkuriang.inovasi.daerah.master.model.response.ReturnData
import
id.co.sangkuriang.inovasi.daerah.master.pojo.Users
import
id.co.sangkuriang.inovasi.daerah.master.utility.getFullUrl
import
id.co.sangkuriang.inovasi.daerah.master.utility.getPathUrl
import
org.springframework.security.authentication.UsernamePasswordAuthenticationToken
import
org.springframework.security.core.context.SecurityContextHolder
import
org.springframework.web.util.ContentCachingRequestWrapper
...
...
@@ -111,12 +109,12 @@ class TokenInterceptor : Filter {
AUDIENCE_FILTER_PATH
[
audience
]
?.
forEach
lambda
@
{
if
(
it
.
contains
(
"/*"
))
{
if
(
getPathUrl
(
request
).
contains
(
it
.
replaceFirst
(
"/"
,
""
)
.
replace
(
"/*"
,
""
)))
{
if
(
request
.
requestURI
.
contains
(
it
.
replace
(
"/*"
,
""
)))
{
isAllowed
=
true
return
@lambda
}
}
else
{
if
(
getFullUrl
(
request
).
contains
(
it
)
)
{
if
(
request
.
requestURI
==
it
)
{
isAllowed
=
true
return
@lambda
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment