//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
using System.IdentityModel;
using System.IdentityModel.Configuration;
using System.Xml;
namespace System.Security.Claims
{
///
/// A Simple ClaimsAuthenticationManager that echoes back the incoming ClaimsIdentities.
///
public class ClaimsAuthenticationManager : ICustomIdentityConfiguration
{
///
/// The method echoes back the incoming ClaimsIdentities.
///
/// The address to which the request was sent.
/// presented by the client (in the form of a
/// SecurityToken) to access the resource.
/// The ClaimsPrincipal given to the method.
public virtual ClaimsPrincipal Authenticate(string resourceName, ClaimsPrincipal incomingPrincipal)
{
return incomingPrincipal;
}
///
/// Load custom configuration from Xml
///
/// Custom configuration elements
public virtual void LoadCustomConfiguration(XmlNodeList nodelist)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(SR.GetString(SR.ID0023, this.GetType().AssemblyQualifiedName)));
}
}
}