Sha256: b320e8316060b14895c60e468b47a6925642d753512b3a5c4d2d70854fdef485
Contents?: true
Size: 781 Bytes
Versions: 1
Compression:
Stored size: 781 Bytes
Contents
using System; using net.openstack.Providers.Rackspace; using net.openstack.Core.Providers; using net.openstack.Core.Exceptions.Response; using net.openstack.Providers.Rackspace.Objects; namespace openstack.net { class AuthenticateToken : Challenge { public int Run (string[] args) { var auth_url = new Uri(Environment.GetEnvironmentVariable ("RAX_AUTH_URL")); Console.WriteLine ("Connecting to " + auth_url); IIdentityProvider identityProvider = new CloudIdentityProvider (null, null, null, auth_url); identityProvider.Authenticate (new RackspaceCloudIdentity { Username = Environment.GetEnvironmentVariable("RAX_USERNAME"), APIKey = Environment.GetEnvironmentVariable("RAX_API_KEY") }); Console.WriteLine ("Authenticated!"); return 0; } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.0.1 | sdks/openstack.net/challenges/AuthenticateToken.cs |