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