Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
namespace AzureClaimsAuthenticator
{
using OpenRasta.Authentication;
using OpenRasta.Configuration;
using OpenRasta.Configuration.Fluent;
using OpenRasta.DI;
using OpenRasta.OperationModel.Interceptors;
using OpenRasta.Pipeline.Contributors;
public static class Extensions
{
public static void AzureClaimsAuthenticationScheme(this IUses anchor)
{
anchor.PipelineContributor<AuthenticationContributor>();
anchor.CustomDependency<IAuthenticationScheme, AzureClaimsAuthenticationScheme>(DependencyLifetime.Singleton);
anchor.CustomDependency<IOperationInterceptor, ClaimsAuthorizingInterceptor>(DependencyLifetime.Singleton);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment