Yōten: A social tracker for your language learning journey built on the atproto.

fix(oauth): add scheme to client uri

Signed-off-by: brookjeynes <me@brookjeynes.dev>

authored by brookjeynes.dev and committed by Tangled c7b4f265 535d3c93

Changed files
+6 -6
internal
server
+1 -1
internal/server/oauth/consts.go
··· 2 2 3 3 const ( 4 4 ClientName = "Yoten" 5 - ClientURI = "yoten.app" 5 + ClientURI = "https://yoten.app" 6 6 SessionName = "yoten-oauth-session-v2" 7 7 SessionHandle = "handle" 8 8 SessionDid = "did"
+5 -5
internal/server/oauth/handler.go
··· 34 34 clientName := ClientName 35 35 clientUri := ClientURI 36 36 37 - doc := o.ClientApp.Config.ClientMetadata() 38 - doc.JWKSURI = &o.JwksUri 39 - doc.ClientName = &clientName 40 - doc.ClientURI = &clientUri 37 + meta := o.ClientApp.Config.ClientMetadata() 38 + meta.JWKSURI = &o.JwksUri 39 + meta.ClientName = &clientName 40 + meta.ClientURI = &clientUri 41 41 42 42 w.Header().Set("Content-Type", "application/json") 43 - if err := json.NewEncoder(w).Encode(doc); err != nil { 43 + if err := json.NewEncoder(w).Encode(meta); err != nil { 44 44 http.Error(w, err.Error(), http.StatusInternalServerError) 45 45 return 46 46 }