go-sdk
go-sdk copied to clipboard
clients should check PKCE support
The client auth implementation for clients should check that the auth server implements PKCE, as described in https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/docs/specification/draft/basic/authorization.mdx?plain=1#L350-L356.
Hi @jba, allow me to double confirming
- In auth_meta.go, Use GetAuthServerMeta and check using CodeChallengeMethodsSupported
- provide example in client_example_test.go
let me know if i missed something. if already no issue, can assign this task to me? willing to raise the PR
Yes, CodeChallengeMethodsSupported must be a non-empty slice.