Created
March 27, 2011 23:24
-
-
Save BertCraven/889756 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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