MCPcopy Index your code
hub / github.com/tinyauthapp/tinyauth / NewAuthService

Function NewAuthService

internal/service/auth_service.go:100–111  ·  view source on GitHub ↗
(config AuthServiceConfig, docker *DockerService, ldap *LdapService, queries *repository.Queries, oauthBroker *OAuthBrokerService)

Source from the content-addressed store, hash-verified

98}
99
100func NewAuthService(config AuthServiceConfig, docker *DockerService, ldap *LdapService, queries *repository.Queries, oauthBroker *OAuthBrokerService) *AuthService {
101 return &AuthService{
102 config: config,
103 docker: docker,
104 loginAttempts: make(map[string]*LoginAttempt),
105 ldapGroupsCache: make(map[string]*LdapGroupsCache),
106 oauthPendingSessions: make(map[string]*OAuthPendingSession),
107 ldap: ldap,
108 queries: queries,
109 oauthBroker: oauthBroker,
110 }
111}
112
113func (auth *AuthService) Init() error {
114 go auth.CleanupOAuthSessionsRoutine()

Callers 3

TestUserControllerFunction · 0.92
TestProxyControllerFunction · 0.92
initServicesMethod · 0.92

Calls

no outgoing calls

Tested by 2

TestUserControllerFunction · 0.74
TestProxyControllerFunction · 0.74