Skip to content

Conversation

@samthanawalla
Copy link
Contributor

@samthanawalla samthanawalla commented Sep 23, 2025

@samthanawalla samthanawalla marked this pull request as ready for review September 23, 2025 17:03
@samthanawalla samthanawalla requested review from rolandshoemaker and removed request for findleyr September 23, 2025 17:34

// ClientIDIssuedAt is an OPTIONAL timestamp (seconds from 1970 UTC) when
// the ClientID was issued.
ClientIDIssuedAt int64 `json:"client_id_issued_at,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make this and the following time.Times.

It's not too hard to write custom Marshal/UnmarshalJSON methods, using tricks like the one at https://cs.opensource.google/go/x/oauth2/+/refs/tags/v0.31.0:deviceauth.go;l=42.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Hope I did it correctly!

jba
jba previously approved these changes Sep 25, 2025
ClientSecretExpiresAt time.Time `json:"client_secret_expires_at,omitempty"`
}

func (r ClientRegistrationResponse) MarshalJSON() ([]byte, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*Client...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@jba jba merged commit 294e1f3 into modelcontextprotocol:main Sep 29, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants