feat: custom 401/403 error handling for unauthenticated requests

Replace default Spring Security 403 responses with custom 401 (not logged in)
and 403 (insufficient permissions) JSON error responses via exception handling
and global exception handler. Also bump API version to 1.4.0 and add Swagger
annotations for the GitHub webhook controller.
This commit is contained in:
2026-06-29 09:38:12 +08:00
parent a2469c7573
commit 0aeaac17a4
5 changed files with 44 additions and 2 deletions
+1
View File
@@ -65,6 +65,7 @@ dependencies {
tasks.processResources {
filesMatching("application.yaml") {
println("appVersion = ${artefactVersion}, channel = ${buildChannel}, vendor = ${vendor}")
expand(
"appVersion" to artefactVersion,
"channel" to buildChannel,