MCPcopy Create free account
hub / github.com/gogs/gogs / NewProvider

Function NewProvider

internal/auth/github/provider.go:15–19  ·  view source on GitHub ↗

NewProvider creates a new PAM authentication provider.

(cfg *Config)

Source from the content-addressed store, hash-verified

13
14// NewProvider creates a new PAM authentication provider.
15func NewProvider(cfg *Config) auth.Provider {
16 return &Provider{
17 config: cfg,
18 }
19}
20
21func (p *Provider) Authenticate(login, password string) (*auth.ExternalAccount, error) {
22 fullname, email, website, location, err := p.config.doAuth(login, password)

Callers 5

AfterFindMethod · 0.92
loginSourcesSaveFunction · 0.92
setupDBToDumpFunction · 0.92
loadLoginSourceFilesFunction · 0.92
EditAuthSourcePostFunction · 0.92

Calls

no outgoing calls

Tested by 2

loginSourcesSaveFunction · 0.74
setupDBToDumpFunction · 0.74