Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Typescript SDK von Model Context Protocol
@modelcontextprotocol/core 2.2.0: expectedIssuer und Issuer-Prüfung
In @modelcontextprotocol/core 2.2.0 ist das Erstellen von ClientCredentialsProvider, PrivateKeyJwtProvider, StaticPrivateKeyJwtProvider oder CrossAppAccessProvider ohne expectedIssuer veraltet, fetchToken() wirft bei abweichendem Authorization Server einen AuthorizationServerMismatchError, und die Schemas akzeptieren einen optionalen issuer-Stempel.
Minor Changes
#2887
edd12e2Thanks @maxisbey! - ConstructingClientCredentialsProvider,PrivateKeyJwtProvider,StaticPrivateKeyJwtProviderorCrossAppAccessProviderwithoutexpectedIssueris deprecated: the constructor logs oneconsole.warnand that call signature is marked@deprecated. Behaviour is otherwise unchanged. Pass theissuerof the authorization server the credentials were registered with.fetchToken()throwsAuthorizationServerMismatchError, before sending anything, when the provider's client information is bound to a different authorization server than the one it is called with. TheAuthorizationServerMismatchErrormessage no longer assumes the authorization-code callback; its fields are unchanged.OAuthTokensSchemaandOAuthClientInformationSchemaaccept the optionalissuerstamp, so a provider that reads storage back through them keeps it.auth()overwrites it on every save.