mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Fix JSON issue in GenerateCasToken()
This commit is contained in:
parent
ea1414dfd0
commit
bb04b10e8b
@ -79,7 +79,7 @@ type CasUserAttributes struct {
|
|||||||
type CasNamedAttribute struct {
|
type CasNamedAttribute struct {
|
||||||
XMLName xml.Name `xml:"cas:attribute" json:"-"`
|
XMLName xml.Name `xml:"cas:attribute" json:"-"`
|
||||||
Name string `xml:"name,attr,omitempty"`
|
Name string `xml:"name,attr,omitempty"`
|
||||||
Value string `xml:",innerxml"`
|
Value interface{} `xml:",innerxml"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CasAnyAttribute struct {
|
type CasAnyAttribute struct {
|
||||||
@ -209,7 +209,7 @@ func GenerateCasToken(userId string, service string) (string, error) {
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp := map[string]string{}
|
tmp := map[string]interface{}{}
|
||||||
err = json.Unmarshal(data, &tmp)
|
err = json.Unmarshal(data, &tmp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user