blob: 754823c03c4acfaa5336d03b24567ecb68378e79 [file] [log] [blame]
package gophercloud
type AuthOptions struct {
Username, Password, TenantId string
}
func (c *Context) Authenticate(provider string, options AuthOptions) (*int, error) {
_, err := c.ProviderByName(provider)
if err != nil {
return nil, err
}
if (options.Username == "") || (options.Password == "") {
return nil, ErrCredentials
}
return nil, nil
}