backend for xcvr appview

add key id

+5 -1
+3
server/internal/handler/oauthHandlers.go
··· 27 27 if err != nil { 28 28 h.serverError(w, err) 29 29 } 30 + 31 + cski := os.Getenv("CLIENT_SECRET_KEY_ID") 32 + ro.KeyID = &cski 30 33 rro := map[string]any{"keys": []any{ro}} 31 34 w.Header().Set("Content-Type", "application/json") 32 35 encoder := json.NewEncoder(w)
+2 -1
server/internal/oauth/service.go
··· 7 7 8 8 "github.com/bluesky-social/indigo/atproto/auth/oauth" 9 9 "github.com/bluesky-social/indigo/atproto/syntax" 10 + "os" 10 11 ) 11 12 12 13 type Service struct { ··· 19 20 if err != nil { 20 21 return nil, err 21 22 } 22 - err = config.SetClientSecret(key, "secret.key.name_") 23 + err = config.SetClientSecret(key, os.Getenv("CLIENT_SECRET_KEY_ID")) 23 24 app := oauth.NewClientApp(&config, store) 24 25 return &Service{app}, nil 25 26 }