MCPcopy
hub / github.com/authgear/authgear-server / Service2

Struct Service2

pkg/auth/webapp/service2.go:49–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47var ServiceLogger = slogutil.NewLogger("webapp-service")
48
49type Service2 struct {
50 Request *http.Request
51 Sessions SessionStore
52 SessionCookie SessionCookieDef
53 SignedUpCookie SignedUpCookieDef
54 MFADeviceTokenCookie mfa.CookieDef
55 ErrorService *ErrorService
56 Cookies CookieManager
57 OAuthConfig *config.OAuthConfig
58 UIConfig *config.UIConfig
59 TrustProxy config.TrustProxy
60 UIInfoResolver UIInfoResolver
61 OAuthClientResolver OAuthClientResolver
62
63 Graph GraphService
64}
65
66func (s *Service2) CreateSession(ctx context.Context, session *Session, redirectURI string) (*Result, error) {
67 if err := s.Sessions.Create(ctx, session); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected