bit more tidying

This commit is contained in:
TomPallister
2017-07-04 19:41:41 +01:00
parent 34cd2e1392
commit 09c9a25883
8 changed files with 42 additions and 17 deletions

View File

@ -14,13 +14,16 @@
},
"AuthenticationOptions": {
"Provider": "IdentityServer",
"ProviderRootUrl": "http://localhost:52888",
"ApiName": "api",
"AllowedScopes": [
"openid",
"offline_access"
],
"ApiSecret": "secret"
"IdentityServerConfig": {
"ProviderRootUrl": "http://localhost:52888",
"ApiName": "api",
"ApiSecret": "secret",
"RequireHttps": false
}
},
"AddHeadersToRequest": {
"CustomerId": "Claims[CustomerId] > value",

View File

@ -11,13 +11,13 @@ namespace Ocelot.UnitTests.Configuration
{
public class AuthenticationOptionsCreatorTests
{
private AuthenticationOptionsCreator _authOptionsCreator;
private readonly AuthenticationOptionsCreator _authOptionsCreator;
private FileReRoute _fileReRoute;
private AuthenticationOptions _result;
public AuthenticationOptionsCreatorTests()
{
_authOptionsCreator = new AuthenticationOptionsCreator();
_authOptionsCreator = new AuthenticationOptionsCreator(new AuthenticationProviderConfigCreator());
}
[Fact]