Skip to content

Commit

Permalink
ktlint in /submissions (#15917)
Browse files Browse the repository at this point in the history
/submissions does not have pre-commit hooks to run ktlint
  • Loading branch information
snesm authored Sep 19, 2024
1 parent 6af4969 commit 0cc0a06
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import org.slf4j.LoggerFactory
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.security.authorization.AuthorizationDeniedException
import org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthentication
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken
import org.springframework.web.bind.MissingRequestHeaderException
import org.springframework.web.bind.annotation.ControllerAdvice
Expand Down Expand Up @@ -179,7 +178,7 @@ class SubmissionController(
@ExceptionHandler(AuthorizationDeniedException::class)
fun handleAuthorizationException(
e: AuthorizationDeniedException,
auth: JwtAuthenticationToken
auth: JwtAuthenticationToken,
): ResponseEntity<Unit> {
logger.warn("Authorization denied for token attributes: ${auth.tokenAttributes}", e)

Expand Down

0 comments on commit 0cc0a06

Please sign in to comment.