public StoredGrant Find(string subject, Client client, Application application, IEnumerable<Scope> scopes, StoredGrantType type) { var grants = db.StoredGrants.Where(h => h.Subject == subject && h.Client.ClientId == client.ClientId && h.Application.ID == application.ID && h.Type == type).ToList(); return grants.FirstOrDefault(grant => grant.Scopes.ScopeEquals(scopes)); }
public Models.StoredGrant Find(string subject, Models.Client client, Models.Application application, IEnumerable<Scope> scopes, StoredGrantType type) { var grants = db.StoredGrants.Where(h => h.Subject == subject && h.Client.ClientId == client.ClientId && h.Application.ID == application.ID && h.Type == type).ToList(); foreach (var grant in grants) { if (grant.Scopes.ScopeEquals(scopes)) { return grant; } } return null; }
public StoredGrant Find(string subject, Client client, Application application, System.Collections.Generic.IEnumerable<Scope> scopes, StoredGrantType type) { throw new System.NotImplementedException(); }
public Models.StoredGrant Find(string subject, Models.Client client, Models.Application application, IEnumerable <Scope> scopes, StoredGrantType type) { var grants = db.StoredGrants.Where(h => h.Subject == subject && h.Client.ClientId == client.ClientId && h.Application.ID == application.ID && h.Type == type).ToList(); foreach (var grant in grants) { if (grant.Scopes.ScopeEquals(scopes)) { return(grant); } } return(null); }
public StoredGrant Find(string subject, Client client, Application application, System.Collections.Generic.IEnumerable <Scope> scopes, StoredGrantType type) { throw new System.NotImplementedException(); }