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 |
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 System; | |
using System.Linq; | |
using System.Net; | |
using OpenRasta.Authentication; | |
public class AzureClaimsAuthenticationScheme : IAuthenticationScheme | |
{ |
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
// ---------------------------------------------------------------------------------- | |
// Microsoft Developer & Platform Evangelism | |
// | |
// Copyright (c) Microsoft Corporation. All rights reserved. | |
// | |
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, | |
// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES | |
// OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. | |
// ---------------------------------------------------------------------------------- | |
// The example companies, organizations, products, domain names, |
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 System; | |
[AttributeUsage(AttributeTargets.Method)] | |
public class RequiresClaimsAttribute : Attribute | |
{ | |
public string ClaimType { get; set; } | |
public string ClaimValue { get; set; } |