Validate OAuth authorization state (#1726)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
950ac7c1bc
commit
9c635ffed1
1 changed files with 170 additions and 26 deletions
|
|
@ -120,6 +120,7 @@ public abstract class OAuthTestBase : KestrelInMemoryTest, IAsyncDisposable
|
|||
return new ModelContextProtocol.Authentication.AuthorizationResult
|
||||
{
|
||||
Code = queryParams["code"],
|
||||
State = queryParams["state"],
|
||||
Iss = queryParams.TryGetValue("iss", out var iss) ? (string?)iss : null,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue