Monorepo for Tangled tangled.org

appview/oauth: add client name and uri to metadata responses

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 1658bfc6 7949848c

verified
Changed files
+5
appview
oauth
+5
appview/oauth/handler.go
··· 30 30 } 31 31 32 32 func (o *OAuth) clientMetadata(w http.ResponseWriter, r *http.Request) { 33 + clientName := "Tangled" 34 + clientUri := "tangled.org" 35 + 33 36 doc := o.ClientApp.Config.ClientMetadata() 34 37 doc.JWKSURI = &o.JwksUri 38 + doc.ClientName = &clientName 39 + doc.ClientURI = &clientUri 35 40 36 41 w.Header().Set("Content-Type", "application/json") 37 42 if err := json.NewEncoder(w).Encode(doc); err != nil {