(int length)
| 480 | } |
| 481 | |
| 482 | private static string GenerateRandomString(int length) |
| 483 | { |
| 484 | var bytes = RandomNumberGenerator.GetBytes(length); |
| 485 | return Convert.ToBase64String(bytes) |
| 486 | .Replace("+", "-") |
| 487 | .Replace("/", "_") |
| 488 | .Replace("=", "") |
| 489 | .Substring(0, length); |
| 490 | } |
| 491 | |
| 492 | private static string ComputeCodeChallenge(string codeVerifier) |
| 493 | { |
nothing calls this directly
no outgoing calls
no test coverage detected