Method EnsureValid
EnsureValid(string?)
Throws a BadRequestApiException if the value is not a well-formed code challenge (see IsValid(string?)), so that a request can be checked up front with the same rules the sign-in building blocks apply.
Declaration
public static void EnsureValid(string? codeChallenge)
Parameters
| Type | Name | Description |
|---|---|---|
| string | codeChallenge | The code challenge from the client. |
Exceptions
| Type | Condition |
|---|---|
| BadRequestApiException | The code challenge is missing or malformed (CodeChallengeInvalid). |