mcp: add optional issuer validator for pre-registered client validation (SEP-2352) (#946)
Fixes #978
This commit is contained in:
parent
189a85ad92
commit
dfb45f1e11
1 changed files with 190 additions and 5 deletions
|
|
@ -18,6 +18,15 @@ type ClientCredentials struct {
|
|||
// This is the most common authentication method for confidential clients.
|
||||
// OPTIONAL. If not provided, the client is treated as a public client.
|
||||
ClientSecretAuth *ClientSecretAuth
|
||||
|
||||
// Issuer is the issuer identifier of the authorization server these
|
||||
// credentials are registered with. Pre-registered credentials are bound
|
||||
// to a specific authorization server; when set, an error is returned if
|
||||
// the discovered authorization server does not match, per SEP-2352.
|
||||
// The comparison ignores a single trailing slash, matching the
|
||||
// tolerance applied during RFC 8414 Section 3.3 metadata validation.
|
||||
// OPTIONAL.
|
||||
Issuer string
|
||||
}
|
||||
|
||||
// ClientSecretAuth holds client secret authentication credentials.
|
||||
|
|
|
|||
Loading…
Reference in a new issue