Monorepo for Tangled tangled.org

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

merged opened by oppi.li targeting master from push-mklsmqlkzqwo
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3m4b74vhq4422
+5
Diff #0
+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 {

History

2 rounds 1 comment
sign up or login to add to the discussion
1 commit
expand
appview/oauth: add client name and uri to metadata responses
3/3 success
expand
expand 0 comments
pull request successfully merged
oppi.li submitted #0
1 commit
expand
appview/oauth: add client name and uri to metadata responses
3/3 success
expand
expand 1 comment

I think those should be rather configured from oauth.New() function in appview/oauth/oauth.go. Also the ClientURI should be configurable with TANGLED_APPVIEW_HOST.