API review: nuke notification namespaces

This commit is contained in:
Hao Kung 2015-07-16 11:56:48 -07:00
parent 6dc4df9ad5
commit 73d4440a25
69 changed files with 38 additions and 102 deletions

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Authentication; using Microsoft.AspNet.Authentication;
using Microsoft.AspNet.Authentication.Cookies.Infrastructure; using Microsoft.AspNet.Authentication.Cookies;
using Microsoft.Framework.Caching.Memory; using Microsoft.Framework.Caching.Memory;
namespace CookieSessionSample namespace CookieSessionSample

View File

@ -10,7 +10,7 @@ using Microsoft.Framework.Internal;
using Microsoft.Framework.WebEncoders; using Microsoft.Framework.WebEncoders;
using Microsoft.Net.Http.Headers; using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.Authentication.Cookies.Infrastructure namespace Microsoft.AspNet.Authentication.Cookies
{ {
/// <summary> /// <summary>
/// This handles cookies that are limited by per cookie length. It breaks down long cookies for responses, and reassembles them /// This handles cookies that are limited by per cookie length. It breaks down long cookies for responses, and reassembles them

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Authentication.Cookies.Infrastructure namespace Microsoft.AspNet.Authentication.Cookies
{ {
internal static class Constants internal static class Constants
{ {

View File

@ -2,8 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using Microsoft.AspNet.Authentication.Cookies.Infrastructure;
using Microsoft.AspNet.Authentication.DataHandler;
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Builder;
using Microsoft.AspNet.DataProtection; using Microsoft.AspNet.DataProtection;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;

View File

@ -4,7 +4,6 @@
using System; using System;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Cookies.Infrastructure;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.Cookies namespace Microsoft.AspNet.Authentication.Cookies

View File

@ -2,7 +2,7 @@
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.AspNet.Authentication.Cookies.Infrastructure namespace Microsoft.AspNet.Authentication.Cookies
{ {
/// <summary> /// <summary>
/// This provides an abstract storage mechanic to preserve identity information on the server /// This provides an abstract storage mechanic to preserve identity information on the server

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Cookies.Infrastructure namespace Microsoft.AspNet.Authentication.Cookies
{ {
/// <summary> /// <summary>
/// This is used by the CookieAuthenticationMiddleware to process request and response cookies. /// This is used by the CookieAuthenticationMiddleware to process request and response cookies.

View File

@ -3,7 +3,6 @@
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.Cookies namespace Microsoft.AspNet.Authentication.Cookies
{ {

View File

@ -4,7 +4,6 @@
using System; using System;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.Cookies namespace Microsoft.AspNet.Authentication.Cookies
{ {

View File

@ -4,7 +4,6 @@
using System.Security.Claims; using System.Security.Claims;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.Cookies namespace Microsoft.AspNet.Authentication.Cookies
{ {

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.Cookies namespace Microsoft.AspNet.Authentication.Cookies
{ {

View File

@ -4,7 +4,6 @@
using System.Security.Claims; using System.Security.Claims;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.Cookies namespace Microsoft.AspNet.Authentication.Cookies
{ {

View File

@ -2,10 +2,8 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Security.Claims; using System.Security.Claims;
using System.Security.Principal;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Authentication.Notifications;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.Cookies namespace Microsoft.AspNet.Authentication.Cookies

View File

@ -1,7 +1,6 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.AspNet.Authentication.Cookies namespace Microsoft.AspNet.Authentication.Cookies

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.OAuth namespace Microsoft.AspNet.Authentication.OAuth
{ {

View File

@ -3,7 +3,6 @@
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.OAuth namespace Microsoft.AspNet.Authentication.OAuth
{ {

View File

@ -5,7 +5,6 @@ using System;
using System.Globalization; using System.Globalization;
using System.Net.Http; using System.Net.Http;
using System.Security.Claims; using System.Security.Claims;
using Microsoft.AspNet.Authentication.Notifications;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.OAuth namespace Microsoft.AspNet.Authentication.OAuth
{ {

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.OAuth namespace Microsoft.AspNet.Authentication.OAuth
{ {

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.OAuth namespace Microsoft.AspNet.Authentication.OAuth
{ {

View File

@ -8,7 +8,6 @@ using System.Net.Http.Headers;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Security.Claims; using System.Security.Claims;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.DataHandler.Encoder;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Http.Extensions; using Microsoft.AspNet.Http.Extensions;

View File

@ -5,7 +5,6 @@ using System;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.Globalization; using System.Globalization;
using System.Net.Http; using System.Net.Http;
using Microsoft.AspNet.Authentication.DataHandler;
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Builder;
using Microsoft.AspNet.DataProtection; using Microsoft.AspNet.DataProtection;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.OAuthBearer namespace Microsoft.AspNet.Authentication.OAuthBearer
{ {

View File

@ -4,7 +4,6 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
/// <summary> /// <summary>
/// Specifies events which the <see cref="OAuthBearerAuthenticationMiddleware"></see> invokes to enable developer control over the authentication process. /> /// Specifies events which the <see cref="OAuthBearerAuthenticationMiddleware"></see> invokes to enable developer control over the authentication process. />

View File

@ -5,7 +5,6 @@ using System;
using System.IdentityModel.Tokens; using System.IdentityModel.Tokens;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.Notifications;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Http.Features.Authentication; using Microsoft.AspNet.Http.Features.Authentication;

View File

@ -2,12 +2,11 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.OpenIdConnect;
using Microsoft.IdentityModel.Protocols; using Microsoft.IdentityModel.Protocols;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.IdentityModel.Tokens; using System.IdentityModel.Tokens;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication.OpenIdConnect
{ {
/// <summary> /// <summary>
/// This Notification can be used to be informed when an 'AuthorizationCode' is received over the OpenIdConnect protocol. /// This Notification can be used to be informed when an 'AuthorizationCode' is received over the OpenIdConnect protocol.

View File

@ -1,9 +1,7 @@
using System; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.OpenIdConnect;
using Microsoft.AspNet.Http;
using Microsoft.IdentityModel.Protocols; using Microsoft.IdentityModel.Protocols;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication.OpenIdConnect
{ {
/// <summary> /// <summary>
/// This Notification can be used to be informed when an 'AuthorizationCode' is redeemed for tokens at the token endpoint. /// This Notification can be used to be informed when an 'AuthorizationCode' is redeemed for tokens at the token endpoint.

View File

@ -3,7 +3,6 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.Notifications;
using Microsoft.IdentityModel.Protocols; using Microsoft.IdentityModel.Protocols;
namespace Microsoft.AspNet.Authentication.OpenIdConnect namespace Microsoft.AspNet.Authentication.OpenIdConnect

View File

@ -10,7 +10,6 @@ using System.Net.Http;
using System.Net.Http.Headers; using System.Net.Http.Headers;
using System.Security.Claims; using System.Security.Claims;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.Notifications;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Http.Features.Authentication; using Microsoft.AspNet.Http.Features.Authentication;

View File

@ -7,9 +7,6 @@ using System.Diagnostics.CodeAnalysis;
using System.IdentityModel.Tokens; using System.IdentityModel.Tokens;
using System.Net.Http; using System.Net.Http;
using System.Text; using System.Text;
using Microsoft.AspNet.Authentication.DataHandler;
using Microsoft.AspNet.Authentication.DataHandler.Encoder;
using Microsoft.AspNet.Authentication.DataHandler.Serializer;
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Builder;
using Microsoft.AspNet.DataProtection; using Microsoft.AspNet.DataProtection;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Authentication.Twitter.Messages namespace Microsoft.AspNet.Authentication.Twitter
{ {
/// <summary> /// <summary>
/// The Twitter access token retrieved from the access token endpoint. /// The Twitter access token retrieved from the access token endpoint.

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
namespace Microsoft.AspNet.Authentication.Twitter.Messages namespace Microsoft.AspNet.Authentication.Twitter
{ {
/// <summary> /// <summary>
/// The Twitter request token obtained from the request token endpoint. /// The Twitter request token obtained from the request token endpoint.

View File

@ -3,11 +3,10 @@
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.IO; using System.IO;
using Microsoft.AspNet.Authentication.DataHandler.Serializer;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.Twitter.Messages namespace Microsoft.AspNet.Authentication.Twitter
{ {
/// <summary> /// <summary>
/// Serializes and deserializes Twitter request and access tokens so that they can be used by other application components. /// Serializes and deserializes Twitter request and access tokens so that they can be used by other application components.

View File

@ -1,9 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Authentication.DataHandler.Serializer; namespace Microsoft.AspNet.Authentication.Twitter
namespace Microsoft.AspNet.Authentication.Twitter.Messages
{ {
/// <summary> /// <summary>
/// Provides access to a request token serializer. /// Provides access to a request token serializer.

View File

@ -3,7 +3,6 @@
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.Twitter namespace Microsoft.AspNet.Authentication.Twitter
{ {

View File

@ -4,7 +4,6 @@
using System.Security.Claims; using System.Security.Claims;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.Twitter namespace Microsoft.AspNet.Authentication.Twitter
{ {

View File

@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Notifications;
namespace Microsoft.AspNet.Authentication.Twitter namespace Microsoft.AspNet.Authentication.Twitter
{ {

View File

@ -9,7 +9,6 @@ using System.Security.Claims;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.Twitter.Messages;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Http.Features.Authentication; using Microsoft.AspNet.Http.Features.Authentication;

View File

@ -5,9 +5,6 @@ using System;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.Globalization; using System.Globalization;
using System.Net.Http; using System.Net.Http;
using Microsoft.AspNet.Authentication.DataHandler;
using Microsoft.AspNet.Authentication.DataHandler.Encoder;
using Microsoft.AspNet.Authentication.Twitter.Messages;
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Builder;
using Microsoft.AspNet.DataProtection; using Microsoft.AspNet.DataProtection;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;

View File

@ -5,7 +5,6 @@ using System;
using System.Net.Http; using System.Net.Http;
using System.Security.Claims; using System.Security.Claims;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Authentication.Twitter.Messages;
namespace Microsoft.AspNet.Authentication.Twitter namespace Microsoft.AspNet.Authentication.Twitter
{ {

View File

@ -4,7 +4,7 @@
using System; using System;
namespace Microsoft.AspNet.Authentication.DataHandler.Encoder namespace Microsoft.AspNet.Authentication
{ {
public class Base64TextEncoder : ITextEncoder public class Base64TextEncoder : ITextEncoder
{ {

View File

@ -4,7 +4,7 @@
using System; using System;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.DataHandler.Encoder namespace Microsoft.AspNet.Authentication
{ {
public class Base64UrlTextEncoder : ITextEncoder public class Base64UrlTextEncoder : ITextEncoder
{ {

View File

@ -1,10 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
namespace Microsoft.AspNet.Authentication.DataHandler.Serializer namespace Microsoft.AspNet.Authentication
{ {
public static class DataSerializers public static class DataSerializers
{ {

View File

@ -1,8 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Authentication
namespace Microsoft.AspNet.Authentication.DataHandler.Serializer
{ {
public interface IDataSerializer<TModel> public interface IDataSerializer<TModel>
{ {

View File

@ -1,7 +1,6 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Authentication namespace Microsoft.AspNet.Authentication
{ {
public interface ISecureDataFormat<TData> public interface ISecureDataFormat<TData>

View File

@ -1,8 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Authentication
namespace Microsoft.AspNet.Authentication.DataHandler.Encoder
{ {
public interface ITextEncoder public interface ITextEncoder
{ {

View File

@ -3,10 +3,8 @@
using Microsoft.AspNet.DataProtection; using Microsoft.AspNet.DataProtection;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.AspNet.Authentication.DataHandler.Encoder;
using Microsoft.AspNet.Authentication.DataHandler.Serializer;
namespace Microsoft.AspNet.Authentication.DataHandler namespace Microsoft.AspNet.Authentication
{ {
public class PropertiesDataFormat : SecureDataFormat<AuthenticationProperties> public class PropertiesDataFormat : SecureDataFormat<AuthenticationProperties>
{ {

View File

@ -1,15 +1,13 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.IO; using System.IO;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.DataHandler.Serializer namespace Microsoft.AspNet.Authentication
{ {
public class PropertiesSerializer : IDataSerializer<AuthenticationProperties> public class PropertiesSerializer : IDataSerializer<AuthenticationProperties>
{ {

View File

@ -1,13 +1,10 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using Microsoft.AspNet.DataProtection; using Microsoft.AspNet.DataProtection;
using Microsoft.AspNet.Authentication.DataHandler.Encoder;
using Microsoft.AspNet.Authentication.DataHandler.Serializer;
namespace Microsoft.AspNet.Authentication.DataHandler namespace Microsoft.AspNet.Authentication
{ {
public class SecureDataFormat<TData> : ISecureDataFormat<TData> public class SecureDataFormat<TData> : ISecureDataFormat<TData>
{ {

View File

@ -1,8 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNet.Authentication
namespace Microsoft.AspNet.Authentication.DataHandler.Encoder
{ {
public static class TextEncodings public static class TextEncodings
{ {

View File

@ -2,10 +2,8 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.DataProtection; using Microsoft.AspNet.DataProtection;
using Microsoft.AspNet.Authentication.DataHandler.Encoder;
using Microsoft.AspNet.Authentication.DataHandler.Serializer;
namespace Microsoft.AspNet.Authentication.DataHandler namespace Microsoft.AspNet.Authentication
{ {
public class TicketDataFormat : SecureDataFormat<AuthenticationTicket> public class TicketDataFormat : SecureDataFormat<AuthenticationTicket>
{ {

View File

@ -7,7 +7,7 @@ using System.Linq;
using System.Security.Claims; using System.Security.Claims;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.DataHandler.Serializer namespace Microsoft.AspNet.Authentication
{ {
public class TicketSerializer : IDataSerializer<AuthenticationTicket> public class TicketSerializer : IDataSerializer<AuthenticationTicket>
{ {

View File

@ -4,7 +4,7 @@
using System; using System;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
public class AuthenticationFailedNotification<TMessage, TOptions> : BaseNotification<TOptions> public class AuthenticationFailedNotification<TMessage, TOptions> : BaseNotification<TOptions>
{ {

View File

@ -1,10 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
public abstract class BaseContext public abstract class BaseContext
{ {

View File

@ -1,10 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
/// <summary> /// <summary>
/// Base class used for certain event contexts /// Base class used for certain event contexts

View File

@ -1,10 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
public class BaseNotification<TOptions> : BaseContext<TOptions> public class BaseNotification<TOptions> : BaseContext<TOptions>
{ {

View File

@ -1,10 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
public abstract class EndpointContext : BaseContext public abstract class EndpointContext : BaseContext
{ {

View File

@ -4,7 +4,7 @@
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
/// <summary> /// <summary>
/// Base class used for certain event contexts /// Base class used for certain event contexts

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
public class MessageReceivedNotification<TMessage, TOptions> : BaseNotification<TOptions> public class MessageReceivedNotification<TMessage, TOptions> : BaseNotification<TOptions>
{ {

View File

@ -1,10 +1,9 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
public enum NotificationResultState public enum NotificationResultState
{ {

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
public class RedirectFromIdentityProviderNotification<TMessage, TOptions> : BaseNotification<TOptions> public class RedirectFromIdentityProviderNotification<TMessage, TOptions> : BaseNotification<TOptions>
{ {

View File

@ -5,7 +5,7 @@ using System;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.Framework.Internal; using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
/// <summary> /// <summary>
/// When a user configures the <see cref="AuthenticationMiddleware{TOptions}"/> to be notified prior to redirecting to an IdentityProvider /// When a user configures the <see cref="AuthenticationMiddleware{TOptions}"/> to be notified prior to redirecting to an IdentityProvider

View File

@ -1,13 +1,12 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.Security.Claims; using System.Security.Claims;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
public abstract class ReturnEndpointContext : EndpointContext public abstract class ReturnEndpointContext : EndpointContext
{ {

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
public class SecurityTokenReceivedNotification<TMessage, TOptions> : BaseNotification<TOptions> public class SecurityTokenReceivedNotification<TMessage, TOptions> : BaseNotification<TOptions>
{ {

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Authentication.Notifications namespace Microsoft.AspNet.Authentication
{ {
public class SecurityTokenValidatedNotification<TMessage, TOptions> : BaseNotification<TOptions> public class SecurityTokenValidatedNotification<TMessage, TOptions> : BaseNotification<TOptions>
{ {

View File

@ -4,7 +4,7 @@
using Shouldly; using Shouldly;
using Xunit; using Xunit;
namespace Microsoft.AspNet.Authentication.DataHandler.Encoder namespace Microsoft.AspNet.Authentication
{ {
public class Base64UrlTextEncoderTests public class Base64UrlTextEncoderTests
{ {

View File

@ -5,12 +5,11 @@ using System;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Security.Claims; using System.Security.Claims;
using Microsoft.AspNet.Authentication.DataHandler.Serializer;
using Microsoft.AspNet.Http.Authentication; using Microsoft.AspNet.Http.Authentication;
using Shouldly; using Shouldly;
using Xunit; using Xunit;
namespace Microsoft.AspNet.Authentication.DataHandler.Encoder namespace Microsoft.AspNet.Authentication
{ {
public class TicketSerializerTests public class TicketSerializerTests
{ {

View File

@ -8,7 +8,6 @@ using System.Net.Http;
using System.Security.Claims; using System.Security.Claims;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.DataHandler;
using Microsoft.AspNet.Authentication.OAuth; using Microsoft.AspNet.Authentication.OAuth;
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Builder;
using Microsoft.AspNet.DataProtection; using Microsoft.AspNet.DataProtection;

View File

@ -6,7 +6,6 @@ using System.Net.Http;
using System.Security.Claims; using System.Security.Claims;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.DataHandler;
using Microsoft.AspNet.Authentication.MicrosoftAccount; using Microsoft.AspNet.Authentication.MicrosoftAccount;
using Microsoft.AspNet.Authentication.OAuth; using Microsoft.AspNet.Authentication.OAuth;
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Builder;