this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix JWKSURI refs

+5 -2
+1 -1
atproto/auth/oauth/cmd/oauth-web-demo/main.go
··· 166 166 167 167 meta := s.OAuth.Config.ClientMetadata() 168 168 if s.OAuth.Config.IsConfidential() { 169 - meta.JWKSUri = strPtr(fmt.Sprintf("https://%s/oauth/jwks.json", r.Host)) 169 + meta.JWKSURI = strPtr(fmt.Sprintf("https://%s/oauth/jwks.json", r.Host)) 170 170 } 171 171 meta.ClientName = strPtr("indigo atp-oauth-demo") 172 172 meta.ClientURI = strPtr(fmt.Sprintf("https://%s", r.Host))
+3
atproto/auth/oauth/doc.go
··· 44 44 45 45 func HandleClientMetadata(w http.ResponseWriter, r *http.Request) { 46 46 doc := oauthApp.Config.ClientMetadata() 47 + 48 + // if this is is a confidential client, need to set doc.JWKSURI, and implement a handler 49 + 47 50 w.Header().Set("Content-Type", "application/json") 48 51 if err := json.NewEncoder(w).Encode(doc); err != nil { 49 52 http.Error(w, err.Error(), http.StatusInternalServerError)
+1 -1
atproto/auth/oauth/oauth.go
··· 159 159 160 160 // 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. 161 161 // 162 - // NOTE: confidential clients currently must provide JWKSUri after the fact 162 + // NOTE: confidential clients currently must provide JWKSURI after the fact 163 163 func (config *ClientConfig) ClientMetadata() ClientMetadata { 164 164 m := ClientMetadata{ 165 165 ClientID: config.ClientID,