···44444545 func HandleClientMetadata(w http.ResponseWriter, r *http.Request) {
4646 doc := oauthApp.Config.ClientMetadata()
4747+4848+ // if this is is a confidential client, need to set doc.JWKSURI, and implement a handler
4949+4750 w.Header().Set("Content-Type", "application/json")
4851 if err := json.NewEncoder(w).Encode(doc); err != nil {
4952 http.Error(w, err.Error(), http.StatusInternalServerError)
+1-1
atproto/auth/oauth/oauth.go
···159159160160// Returns a [ClientMetadata] struct with the required fields populated based on this client configuration. Clients may want to populate additional metadata fields on top of this response.
161161//
162162-// NOTE: confidential clients currently must provide JWKSUri after the fact
162162+// NOTE: confidential clients currently must provide JWKSURI after the fact
163163func (config *ClientConfig) ClientMetadata() ClientMetadata {
164164 m := ClientMetadata{
165165 ClientID: config.ClientID,