blob: 91fc814bda2168115cd5bf76a30fbc1ffbeea8d1 [file] [log] [blame]
Samuel A. Falvo II1d3fa662013-06-25 15:29:32 -07001package main
2
3import (
Samuel A. Falvo II1d3fa662013-06-25 15:29:32 -07004 "github.com/rackspace/gophercloud"
5)
6
7func main() {
Samuel A. Falvo II704a7502013-07-10 15:23:43 -07008 provider, username, password := getCredentials()
Samuel A. Falvo II1d3fa662013-06-25 15:29:32 -07009
10 _, err := gophercloud.Authenticate(
11 provider,
12 gophercloud.AuthOptions{
13 Username: username,
14 Password: password,
15 },
16 )
17 if err != nil {
18 panic(err)
19 }
20}