mirror of https://github.com/abpframework/abp.git
committed by
GitHub
18 changed files with 118 additions and 27764 deletions
@ -0,0 +1,26 @@ |
|||
using System.Collections.Generic; |
|||
using System.Net; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Microsoft.Extensions.Options; |
|||
using Shouldly; |
|||
using Xunit; |
|||
|
|||
namespace Volo.Abp.AspNetCore.MultiTenancy; |
|||
|
|||
public class AspNetCoreMultiTenancy_MultiTenancyMiddlewareErrorPageBuilder_Tests : AspNetCoreMultiTenancyTestBase |
|||
{ |
|||
private readonly AbpAspNetCoreMultiTenancyOptions _options; |
|||
|
|||
public AspNetCoreMultiTenancy_MultiTenancyMiddlewareErrorPageBuilder_Tests() |
|||
{ |
|||
_options = ServiceProvider.GetRequiredService<IOptions<AbpAspNetCoreMultiTenancyOptions>>().Value; |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task MultiTenancyMiddlewareErrorPageBuilder() |
|||
{ |
|||
var result = await GetResponseAsStringAsync($"http://abp.io?{_options.TenantKey}=<script>alert(hi)</script>", HttpStatusCode.NotFound); |
|||
result.ShouldNotContain("<script>alert(hi)</script>"); |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,10 @@ |
|||
export interface AbpAuthResponse { |
|||
access_token: string; |
|||
id_token: string; |
|||
token_type: string; |
|||
expires_in: number; |
|||
refresh_token: string; |
|||
scope: string; |
|||
state?: string; |
|||
tenant_domain?: string; |
|||
} |
|||
@ -1,3 +1,4 @@ |
|||
export * from './ng-model.component'; |
|||
export * from './auth.guard'; |
|||
export * from './auth.service'; |
|||
export * from './auth-response.model'; |
|||
|
|||
Loading…
Reference in new issue