Skip to content

Instantly share code, notes, and snippets.

@BertCraven
Created March 27, 2011 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BertCraven/889756 to your computer and use it in GitHub Desktop.
Save BertCraven/889756 to your computer and use it in GitHub Desktop.
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