是否可以在 IdentityModel.OidcClient 中获取 code_verifier?

问题描述

IdentityModel.OidcClient 发送已生成 code_challenge 的请求。我是testing the flow on postman to get the token after getting the auth code,但我需要code_verifier,是否可以获取用于生成code_challenge的code_verifier oidcclient?

谢谢

解决方法

@leastprivilege 提供 您可以调用 PrepareLogin 返回

https://github.com/IdentityModel/IdentityModel.OidcClient/blob/main/src/OidcClient/AuthorizeState.cs