Spaces:
Sleeping
Sleeping
Commit ·
13b962e
1
Parent(s): d479e18
fix(agent-canvas): handle spaces in base64 claim token dynamically in VerifyClaimToken
Browse files
FlowAPI/Controllers/AgentCanvasController.cs
CHANGED
|
@@ -268,6 +268,7 @@ namespace FlowAPI.Controllers
|
|
| 268 |
{
|
| 269 |
try
|
| 270 |
{
|
|
|
|
| 271 |
var key = _config["Jwt:Key"] ?? "TaskFlow_Secret_Key_For_JWT_Authentication_2026_!@#";
|
| 272 |
var decodedBytes = Convert.FromBase64String(claimToken);
|
| 273 |
var decodedString = System.Text.Encoding.UTF8.GetString(decodedBytes);
|
|
|
|
| 268 |
{
|
| 269 |
try
|
| 270 |
{
|
| 271 |
+
claimToken = claimToken.Replace(" ", "+");
|
| 272 |
var key = _config["Jwt:Key"] ?? "TaskFlow_Secret_Key_For_JWT_Authentication_2026_!@#";
|
| 273 |
var decodedBytes = Convert.FromBase64String(claimToken);
|
| 274 |
var decodedString = System.Text.Encoding.UTF8.GetString(decodedBytes);
|