samithaliyanage opened a new issue, #311:
URL: https://github.com/apache/airavata-custos/issues/311

   Getting users from the username API call doesn't work in the stage and 
development stacks. This works in the production stack.
   
   Request:
   curl -k -X GET -H "Authorization: Bearer $TKN"  -H "Content-Type: 
application/json; charset=UTF-8" $UM_SERVER/user?user.username=$1
   
   Errors for different authorization tokens
   
   For the BEARER_TOKEN=$(echo -n $ADMIN_ID:$ADMIN_SECRET | base64 -w 0) 
   {
    "code": 3,
    "message": "Error while validating method getUser, class 
org.apache.custos.iam.service.UserSearchRequest cannot be cast to class 
org.apache.custos.identity.service.AuthToken 
(org.apache.custos.iam.service.UserSearchRequest and 
org.apache.custos.identity.service.AuthToken are in unnamed module of loader 
'app')",
    "details": []
   }
   
   For the admin access token
   {
    "code": 16,
    "message": "Error while authorizing method getUser,  invalid token  invalid 
token INTERNAL:  Operation failed Error occurred while decoding token ",
    "details": []
   }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to