MCPcopy
hub / github.com/tinyauthapp/tinyauth / OAuthService

Struct OAuthService

internal/service/oauth_service.go:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13type UserinfoExtractor func(client *http.Client, url string) (config.Claims, error)
14
15type OAuthService struct {
16 serviceCfg config.OAuthServiceConfig
17 config *oauth2.Config
18 ctx context.Context
19 userinfoExtractor UserinfoExtractor
20 id string
21}
22
23func NewOAuthService(config config.OAuthServiceConfig, id string) *OAuthService {
24 httpClient := &http.Client{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected