-
Notifications
You must be signed in to change notification settings - Fork 2
SDIT-1113: 🔒️ Secure automated refresh endpoint and test #511
Conversation
3206cc5
to
9c36e36
Compare
testClazz.memberFunctions | ||
.filter { it.name.contains("access forbidden") } | ||
.map { | ||
it.name | ||
.substringAfter("for endpoint ") | ||
.substringBefore(" when no role") | ||
.replace("#", "/") | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not keen on this - for all I know the test has the right name but tests something entirely different. Not sure of a better way though 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. Ideally though wouldn't be needed at all since the resources will have the annotations. However didn't want to start changing this project since we're in the process of ripping it all out anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would still be relevant for Prison API though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
mapping.handlerMethods.forEach { (mappingInfo, method) -> | ||
val classAnnotation = method.beanType.getAnnotation(PreAuthorize::class.java) | ||
val annotation = method.getMethodAnnotation(PreAuthorize::class.java) | ||
println("Found $mappingInfo with class annotation $classAnnotation and annotation $annotation") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this line a temporary data dump?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it was, will remove in next PR
No description provided.