wso2 / product-is

Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
742 stars 720 forks source link

OIDC Session Extending API doesnt output a Body in the API Response #13286

Open ShanikaWickramasinghe opened 2 years ago

ShanikaWickramasinghe commented 2 years ago

How to reproduce:

  1. Setup playground app
  2. Obtain ID Token using authorization grant type
  3. Decode the ID token and obtain value for isk
  4. Try out the below API as super admin
curl --location --request GET 'https://localhost:9443/identity/extend-session?idpSessionKey=bb279c0da71249ad1d5679e05668067f5792d00bc488d97e2942c1377b4ad5d0' \
--header 'Authorization: Basic YWRtaW46YWRtaW4='

Actual Behavior Currently getting only the status code as 200

Expected behavior: There should be a response body for the API response

Screenshot from 2022-03-21 13-01-53

Environment information (Please complete the following information; remove any unnecessary fields) : IS 5.12.0 alpha 16

piraveena commented 2 years ago

Now we don't return anything in the API response. We return status code as 200 OK. We can additionally add some improvements to the response, like how long the session extended or expiry time. But we can track this for future.