commit | 5d0d74ce130097c44e1c6290a607c74ec58a59ee | [log] [tgz] |
---|---|---|
author | Samuel A. Falvo II <sam.falvo@rackspace.com> | Tue Jun 25 17:23:18 2013 -0700 |
committer | Samuel A. Falvo II <sam.falvo@rackspace.com> | Tue Jun 25 17:23:18 2013 -0700 |
tree | 0bc7a6766c8a3cf2acb56d6cf7533816ce511902 | |
parent | fd78c30473c2f64b2c0ef3263b0f1e1f963c36a8 [diff] [blame] |
Make Authenticate issue an HTTP request
diff --git a/provider.go b/provider.go index f2249c3..9d66fe1 100644 --- a/provider.go +++ b/provider.go
@@ -4,12 +4,16 @@ ) type Provider struct { - // empty. + AuthEndpoint string } var providerMap = make(map[string]*Provider) func (c *Context) RegisterProvider(name string, p *Provider) error { + if p.AuthEndpoint == "" { + return ErrConfiguration + } + c.providerMap[name] = p return nil }