WIP
parent
1b7030e45c
commit
b4d6e8e26c
|
@ -10,7 +10,7 @@ namespace ln.application.demo
|
||||||
|
|
||||||
public DemoIdentityProvider()
|
public DemoIdentityProvider()
|
||||||
{
|
{
|
||||||
Identity demoIdentity = new Identity("demo");
|
Identity demoIdentity = new Identity(this,"demo");
|
||||||
demoIdentity.AddSecureAttribute(new SeededPassword("demopass"));
|
demoIdentity.AddSecureAttribute(new SeededPassword("demopass"));
|
||||||
|
|
||||||
identities.Add(demoIdentity.UniqueID,demoIdentity);
|
identities.Add(demoIdentity.UniqueID,demoIdentity);
|
||||||
|
@ -18,7 +18,7 @@ namespace ln.application.demo
|
||||||
|
|
||||||
public override Identity CreateIdentity(string identityName)
|
public override Identity CreateIdentity(string identityName)
|
||||||
{
|
{
|
||||||
Identity identity = new Identity(identityName);
|
Identity identity = new Identity(this,identityName);
|
||||||
identities.Add(identity.UniqueID, identity);
|
identities.Add(identity.UniqueID, identity);
|
||||||
return identity;
|
return identity;
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,14 @@ namespace ln.application.demo
|
||||||
public override IEnumerable<KeyValuePair<Guid, string>> GetIdentities() => identities.Select((arg) => new KeyValuePair<Guid, string>(arg.Key,arg.Value.IdentityName));
|
public override IEnumerable<KeyValuePair<Guid, string>> GetIdentities() => identities.Select((arg) => new KeyValuePair<Guid, string>(arg.Key,arg.Value.IdentityName));
|
||||||
public override Identity GetIdentity(Guid uniqueID) => identities[uniqueID];
|
public override Identity GetIdentity(Guid uniqueID) => identities[uniqueID];
|
||||||
|
|
||||||
|
public override IEnumerable<RoleAssignment> GetRoleAssignments(Identity identity)
|
||||||
|
{
|
||||||
|
List<RoleAssignment> roleAssignments = new List<RoleAssignment>();
|
||||||
|
roleAssignments.Add(new RoleAssignment(this,identity, identity, Role.BE));
|
||||||
|
|
||||||
|
return roleAssignments;
|
||||||
|
}
|
||||||
|
|
||||||
public override bool Save(Identity identity) => true;
|
public override bool Save(Identity identity) => true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
www
2
www
|
@ -1 +1 @@
|
||||||
Subproject commit caff9e19d57c1a2d940fbaee97cf42d679a1f16b
|
Subproject commit db1f67805bdc2a539ef1211d38b574053bb9c9be
|
Loading…
Reference in New Issue