+9
-1
appview/oauth/oauth.go
+9
-1
appview/oauth/oauth.go
···
58
59
sessStore := sessions.NewCookieStore([]byte(config.Core.CookieSecret))
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
+
69
return &OAuth{
70
+
ClientApp: clientApp,
71
Config: config,
72
SessStore: sessStore,
73
JwksUri: jwksUri,
+1
appview/state/login.go
+1
appview/state/login.go