You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by GitBox <gi...@apache.org> on 2022/10/19 17:57:34 UTC

[GitHub] [airavata-custos] samithaliyanage opened a new issue, #311: User GET call doesn't work in both stage and development stacks

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: issues-unsubscribe@airavata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airavata-custos] isururanawaka commented on issue #311: User GET call doesn't work in both stage and development stacks

Posted by "isururanawaka (via GitHub)" <gi...@apache.org>.
isururanawaka commented on issue #311:
URL: https://github.com/apache/airavata-custos/issues/311#issuecomment-1689994583

   completed


-- 
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: issues-unsubscribe@airavata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airavata-custos] isururanawaka closed issue #311: User GET call doesn't work in both stage and development stacks

Posted by "isururanawaka (via GitHub)" <gi...@apache.org>.
isururanawaka closed issue #311: User GET call doesn't work in both stage and development stacks
URL: https://github.com/apache/airavata-custos/issues/311


-- 
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: issues-unsubscribe@airavata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airavata-custos] isururanawaka commented on issue #311: User GET call doesn't work in both stage and development stacks

Posted by GitBox <gi...@apache.org>.
isururanawaka commented on issue #311:
URL: https://github.com/apache/airavata-custos/issues/311#issuecomment-1304065866

   https://github.com/apache/airavata-custos/pull/319


-- 
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: issues-unsubscribe@airavata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org