Start protecting the Api
This commit is contained in:
parent
070f41ac7e
commit
57adfc82a5
5 changed files with 11 additions and 4 deletions
|
|
@ -342,7 +342,7 @@ public static class HostingExtensions
|
|||
{
|
||||
return (context, _) =>
|
||||
{
|
||||
foreach (String scope in new string[] { "blog", "admin", "contract", "com" })
|
||||
foreach (String scope in Constants.BuildInApiScopes)
|
||||
{
|
||||
var existentScope = context.Set<ApiScope>().FirstOrDefault(b => b.Name == scope);
|
||||
if (existentScope == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue