Exemplo n.º 1
0
 public SwiftAuthV3Request(string name, string password, string domain = "Default", IScopeDescriptorObject scope = null)
 {
     Auth = new AuthObject()
     {
         Identity = new IdentityObject()
         {
             Methods = new List<string>() { "password" },
             Password = new PasswordObject()
             {
                 User = new UserObject()
                 {
                     Name = name,
                     Password = password,
                     Domain = new DomainObject() { Name = domain }
                 }
             }
         },
         Scope = new ScopeObject(scope)
     };
 }
Exemplo n.º 2
0
 public ScopeObject(IScopeDescriptorObject scope = null)
 {
     System = scope as SystemObject;
     Project = scope as ProjectObject;
     Domain = scope as DomainObject;
 }