casdoor / casdoor-go-sdk

Go client SDK for Casdoor

Home Page:https://github.com/casdoor/casdoor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetUser() bug, cannot parse response

xqbumu opened this issue · comments

use GetUser method to get details of the user, and Casdoor returns the content as follows

{
  "owner": "org-xxx",
  "name": "xxxxxx",
  "createdTime": ""
  ...
}

but in

err = json.Unmarshal(respBytes, &response)

The returned content will be Unmarshal to auth.Response first, which is inconsistent with the json format returned by Casdoor, so the user details cannot be actually obtained from GetUser.

casdoor version: v1.45.0
casdoor-go-sdk version: v0.4.0

@xqbumu plz change all texts into English

🎉 This issue has been resolved in version 0.4.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀