This is an automated email from the ASF dual-hosted git repository.

lahirujayathilake pushed a commit to branch auth-endpoints
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git

commit 689e43be73136403e69ce1a5ac0b19baa1538218
Author: lahiruj <[email protected]>
AuthorDate: Wed Jun 17 15:55:52 2026 -0400

    Drop stale Missing caller header from privilege swag
    
    Co-Authored-By: Claude Opus 4.7 <[email protected]>
---
 api/core.openapi.yaml        | 2 +-
 internal/server/privilege.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/core.openapi.yaml b/api/core.openapi.yaml
index 65d7ed17f..418491425 100644
--- a/api/core.openapi.yaml
+++ b/api/core.openapi.yaml
@@ -2670,7 +2670,7 @@ paths:
               $ref: '#/definitions/PrivilegeKey'
             type: array
         "401":
-          description: Missing caller header
+          description: Unauthenticated
           schema:
             properties:
               error:
diff --git a/internal/server/privilege.go b/internal/server/privilege.go
index 504ce8baf..92ad75d8f 100644
--- a/internal/server/privilege.go
+++ b/internal/server/privilege.go
@@ -55,7 +55,7 @@ func (s *Server) getCallerPrivileges(w http.ResponseWriter, r 
*http.Request) {
 // @Security   BearerAuth
 // @Produce    json
 // @Success    200     {array} models.PrivilegeKey
-// @Failure    401     {object}        object{error=string}    "Missing caller 
header"
+// @Failure    401     {object}        object{error=string}    
"Unauthenticated"
 // @Failure    403     {object}        object{error=string}    "Caller lacks 
privileges:grant"
 // @Router     /privileges/catalog [get]
 func (s *Server) getPrivilegeCatalog(w http.ResponseWriter, _ *http.Request) {

Reply via email to