forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

appview/oauth: overload oauth identity directory

we invalidate resolutions in our ingester, but the oauth SDK seems to
bring its own directory! this changeset shares them instead.

thanks to nel.pet <did:plc:h5wsnqetncv6lu2weom35lg2> for the hint.

Signed-off-by: oppiliappan <me@oppi.li>

Changed files
+4 -1
appview
oauth
+4 -1
appview/oauth/oauth.go
···
sessStore := sessions.NewCookieStore([]byte(config.Core.CookieSecret))
+
clientApp := oauth.NewClientApp(&oauthConfig, authStore)
+
clientApp.Dir = res.Directory()
+
return &OAuth{
-
ClientApp: oauth.NewClientApp(&oauthConfig, authStore),
+
ClientApp: clientApp,
Config: config,
SessStore: sessStore,
JwksUri: jwksUri,