Skip to content

Instantly share code, notes, and snippets.

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
namespace AzureClaimsAuthenticator
{
using System;
using System.Linq;
using System.Net;
using OpenRasta.Authentication;
public class AzureClaimsAuthenticationScheme : IAuthenticationScheme
{
// ----------------------------------------------------------------------------------
// 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,
namespace AzureClaimsAuthenticator
{
using System.Linq;
using OpenRasta.Authentication;
using OpenRasta.DI;
using OpenRasta.OperationModel.Interceptors;
using OpenRasta.Web;
public class ClaimsAuthorizingInterceptor : OperationInterceptor
namespace AzureClaimsAuthenticator
{
using System;
[AttributeUsage(AttributeTargets.Method)]
public class RequiresClaimsAttribute : Attribute
{
public string ClaimType { get; set; }
public string ClaimValue { get; set; }