Signed-off-by: Anirudh Oppiliappan anirudh@tangled.sh
+3
-3
appview/cache/session/store.go
+3
-3
appview/cache/session/store.go
···func (s *SessionStore) GetRequestByState(ctx context.Context, state string) (*OAuthRequest, error) {···
···func (s *SessionStore) GetRequestByState(ctx context.Context, state string) (*OAuthRequest, error) {···
+9
-5
appview/oauth/handler/handler.go
+9
-5
appview/oauth/handler/handler.go
···························
···························
+28
-35
appview/oauth/oauth.go
+28
-35
appview/oauth/oauth.go
···-func (o *OAuth) SaveSession(w http.ResponseWriter, r *http.Request, oreq db.OAuthRequest, oresp *oauth.TokenResponse) error {······························
···+func (o *OAuth) SaveSession(w http.ResponseWriter, r *http.Request, oreq sessioncache.OAuthRequest, oresp *oauth.TokenResponse) error {······························
+1
-3
appview/state/router.go
+1
-3
appview/state/router.go
······-oauth := oauthhandler.New(s.config, s.pages, s.idResolver, s.db, store, s.oauth, s.enforcer, s.posthog)
······+oauth := oauthhandler.New(s.config, s.pages, s.idResolver, s.db, s.sess, store, s.oauth, s.enforcer, s.posthog)
+9
-8
appview/state/state.go
+9
-8
appview/state/state.go
·········posthog, err := posthog.NewWithConfig(config.Posthog.ApiKey, posthog.Config{Endpoint: config.Posthog.Endpoint})·········
·········posthog, err := posthog.NewWithConfig(config.Posthog.ApiKey, posthog.Config{Endpoint: config.Posthog.Endpoint})·········