Added a get authentication test, removed the infrastructure name space as it seemed pointless, started thinking about how to pass claims on with the request

This commit is contained in:
tom.pallister
2016-10-17 18:00:36 +01:00
parent ce84ad4fc2
commit 3d60602c7e
97 changed files with 614 additions and 508 deletions

View File

@ -0,0 +1,14 @@
namespace Ocelot.Library.Errors
{
public abstract class Error
{
protected Error(string message, OcelotErrorCode code)
{
Message = message;
Code = code;
}
public string Message { get; private set; }
public OcelotErrorCode Code { get; private set; }
}
}

View File

@ -0,0 +1,15 @@
namespace Ocelot.Library.Errors
{
public enum OcelotErrorCode
{
UnauthenticatedError,
UnknownError,
DownstreamTemplateAlreadyUsedError,
UnableToFindDownstreamRouteError,
CannotAddDataError,
CannotFindDataError,
UnableToCompleteRequestError,
UnableToCreateAuthenticationHandlerError,
UnsupportedAuthenticationProviderError
}
}