Provide API for building AuthOptions from env vars.
diff --git a/acceptance/18-osutil-authentication.go b/acceptance/18-osutil-authentication.go
new file mode 100644
index 0000000..936f376
--- /dev/null
+++ b/acceptance/18-osutil-authentication.go
@@ -0,0 +1,17 @@
+package main
+
+import (
+ "github.com/rackspace/gophercloud"
+ "github.com/rackspace/gophercloud/osutil"
+)
+
+func main() {
+ provider, authOptions, err := osutil.AuthOptions()
+ if err != nil {
+ panic(err)
+ }
+ _, err = gophercloud.Authenticate(provider, authOptions)
+ if err != nil {
+ panic(err)
+ }
+}