private ApiScope CreateApiScope() { var claim = new ApiScopeClaim(); var claims = new List <ApiScopeClaim>() { claim }; var scope = new ApiScope { ApiScopeClaims = claims }; claim.ApiScpope = scope; return(scope); }
protected override ProtectResource Create() { var scope = new ApiScope { ApiScopeClaims = new List <ApiScopeClaim>() }; EntityCreated(scope); return(new ProtectResource { Secrets = new List <ApiSecret>(), Scopes = new List <ApiScope>() { scope }, ApiClaims = new List <ApiClaim>(), Properties = new List <ApiProperty>() }); }