appview/oauth: support custom PLC directory #704

closed
opened by boltless.me targeting master from sandboxed-atmosphere
  • inherit idResolver's PLC directory for oauth
  • override Client.Transport to support PDS served in localhost

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

Changed files
+7
appview
oauth
state
indexes
+4
appview/oauth/oauth.go
···
clientApp := oauth.NewClientApp(&oauthConfig, authStore)
clientApp.Dir = res.Directory()
+
// allow non-public transports in dev mode
+
if config.Core.Dev {
+
clientApp.Resolver.Client.Transport = http.DefaultTransport
+
}
return &OAuth{
ClientApp: clientApp,
+1
appview/state/login.go
···
redirectURL, err := s.oauth.ClientApp.StartAuthFlow(r.Context(), handle)
if err != nil {
+
l.Error("failed to start auth", "err", err)
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
+1
indexes/issues.bleve/index_meta.json
···
+
{"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
···
+
{"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.