add HTTP Request to TokenVerifier (#404)
The request might be needed to verify the token. Fixes #403.
This commit is contained in:
parent
29c1650e2a
commit
d0c5943f25
1 changed files with 16 additions and 13 deletions
|
|
@ -1270,7 +1270,7 @@ func TestTokenInfo(t *testing.T) {
|
|||
AddTool(server, &Tool{Name: "tokenInfo", Description: "return token info"}, tokenInfo)
|
||||
|
||||
streamHandler := NewStreamableHTTPHandler(func(req *http.Request) *Server { return server }, nil)
|
||||
verifier := func(context.Context, string) (*auth.TokenInfo, error) {
|
||||
verifier := func(context.Context, string, *http.Request) (*auth.TokenInfo, error) {
|
||||
return &auth.TokenInfo{
|
||||
Scopes: []string{"scope"},
|
||||
// Expiration is far, far in the future.
|
||||
|
|
|
|||
Loading…
Reference in a new issue