internal/oauthex: address URL attacks in PRM (#539)
Fix Protected Resource Metadata to prevent URL attacks, as described in the issue. For #526
This commit is contained in:
parent
af4bddf3ea
commit
fd0dc9d741
1 changed files with 31 additions and 5 deletions
|
|
@ -5,7 +5,9 @@
|
|||
// Package oauthex implements extensions to OAuth2.
|
||||
package oauthex
|
||||
|
||||
import "github.com/modelcontextprotocol/go-sdk/internal/oauthex"
|
||||
import (
|
||||
"github.com/modelcontextprotocol/go-sdk/internal/oauthex"
|
||||
)
|
||||
|
||||
// ProtectedResourceMetadata is the metadata for an OAuth 2.0 protected resource,
|
||||
// as defined in section 2 of https://www.rfc-editor.org/rfc/rfc9728.html.
|
||||
|
|
|
|||
Loading…
Reference in a new issue