(redirectURL string, code string, state string)
| 590 | } |
| 591 | |
| 592 | func callbackURLWithCode(redirectURL string, code string, state string) string { |
| 593 | parsed, err := url.Parse(strings.TrimSpace(redirectURL)) |
| 594 | if err != nil { |
| 595 | return strings.TrimSpace(redirectURL) |
| 596 | } |
| 597 | values := parsed.Query() |
| 598 | values.Set("code", strings.TrimSpace(code)) |
| 599 | values.Set("state", strings.TrimSpace(state)) |
| 600 | parsed.RawQuery = values.Encode() |
| 601 | return parsed.String() |
| 602 | } |
| 603 | |
| 604 | type mcpAuthPendingLoginRecord struct { |
| 605 | ServerName string `json:"server_name"` |
no test coverage detected