public Task <bool> Update(OAuthScope data, CancellationToken token)
 {
     _scopes.Remove(_scopes.First(s => s.Name == data.Name));
     _scopes.Add((OAuthScope)data.Clone());
     return(Task.FromResult(true));
 }
Example #2
0
 public bool Add(OAuthScope data)
 {
     _scopes.Add((OpenIdScope)data.Clone());
     return(true);
 }
 public Task <bool> Add(OAuthScope data, CancellationToken cancellationToken)
 {
     _scopes.Add((OAuthScope)data.Clone());
     return(Task.FromResult(true));
 }
 public bool Update(OAuthScope data)
 {
     _scopes.Remove(_scopes.First(s => s.Name == data.Name));
     _scopes.Add((OpenIdScope)data.Clone());
     return(true);
 }