+9
-1
appview/oauth/oauth.go
+9
-1
appview/oauth/oauth.go
···
58
58
59
59
sessStore := sessions.NewCookieStore([]byte(config.Core.CookieSecret))
60
60
61
+
clientApp := oauth.NewClientApp(&oauthConfig, authStore)
62
+
// use same plc directory from idresolver
63
+
clientApp.Dir = res.Directory()
64
+
// allow non-public transports in dev mode
65
+
if config.Core.Dev {
66
+
clientApp.Resolver.Client.Transport = http.DefaultTransport
67
+
}
68
+
61
69
return &OAuth{
62
-
ClientApp: oauth.NewClientApp(&oauthConfig, authStore),
70
+
ClientApp: clientApp,
63
71
Config: config,
64
72
SessStore: sessStore,
65
73
JwksUri: jwksUri,