Monorepo for Tangled tangled.org

appview/oauth: support custom PLC directory

- inherit idResolver's PLC directory for oauth
- override `Client.Transport` to support PDS served in localhost

Signed-off-by: Seongmin Lee <git@boltless.me>

boltless.me 5145def5 3ce3755b

verified
Changed files
+7
appview
oauth
state
indexes
+4
appview/oauth/oauth.go
··· 60 60 61 61 clientApp := oauth.NewClientApp(&oauthConfig, authStore) 62 62 clientApp.Dir = res.Directory() 63 + // allow non-public transports in dev mode 64 + if config.Core.Dev { 65 + clientApp.Resolver.Client.Transport = http.DefaultTransport 66 + } 63 67 64 68 return &OAuth{ 65 69 ClientApp: clientApp,
+1
appview/state/login.go
··· 46 46 47 47 redirectURL, err := s.oauth.ClientApp.StartAuthFlow(r.Context(), handle) 48 48 if err != nil { 49 + l.Error("failed to start auth", "err", err) 49 50 http.Error(w, err.Error(), http.StatusInternalServerError) 50 51 return 51 52 }
+1
indexes/issues.bleve/index_meta.json
··· 1 + {"storage":"boltdb","index_type":"scorch"}
indexes/issues.bleve/store/000000000002.zap

This is a binary file and will not be displayed.

indexes/issues.bleve/store/root.bolt

This is a binary file and will not be displayed.

+1
indexes/pulls.bleve/index_meta.json
··· 1 + {"storage":"boltdb","index_type":"scorch"}
indexes/pulls.bleve/store/000000000005.zap

This is a binary file and will not be displayed.

indexes/pulls.bleve/store/root.bolt

This is a binary file and will not be displayed.