blob: bcd35453dbade45135683544e406d05ba0afa342 [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() {
Rafael Garciae4a550e2013-12-06 17:00:32 -03008 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}