Skip to content

Commit

Permalink
Fix for passing claims parameter using request object (cloudentity#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawalec committed May 10, 2023
1 parent a6f11eb commit 0b91d50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/oauth2/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@ func RequestObjectClaims(params url.Values, serverConfig ServerConfig, clientCon
continue
}

claims[key] = values[0]
val := values[0]

if len(val) > 0 && val[0] == '{' {
claims[key] = json.RawMessage(val)
} else {
claims[key] = val
}
}

return claims, nil
Expand Down

0 comments on commit 0b91d50

Please sign in to comment.