Fix package metadata
And also a few other Core-related renames.
This commit is contained in:
parent
26965fd1e1
commit
d78f7edfc7
|
|
@ -5,10 +5,11 @@ AppVeyor: [](https://travis-ci.org/aspnet/Security)
|
||||
|
||||
ASP.NET Security contains the security and authorization middlewares for ASP.NET 5.
|
||||
|
||||
This project is part of ASP.NET 5. You can find samples, documentation and getting started instructions for ASP.NET 5 at the [Home](https://github.com/aspnet/home) repo.
|
||||
Contains the security and authorization middlewares for ASP.NET Core.
|
||||
|
||||
### Notes
|
||||
|
||||
ASP.NET Security will not include Basic Authentication middleware due to its potential insecurity and performance problems. If you host under IIS you can enable it via IIS configuration. If you require Basic Authentication middleware for testing purposes, as a shared secret authentication mechanism for server to server communication, or to use a database as a user source then please look at the samples from [leastprivilege](https://github.com/leastprivilege/BasicAuthentication.AspNet5) or [Kukkimonsuta](https://github.com/Kukkimonsuta/Odachi/tree/master/src/Odachi.AspNetCore.Authentication.Basic).
|
||||
|
||||
|
||||
This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the [Home](https://github.com/aspnet/home) repo.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET middleware that enables an application to use cookie based authentication, similar to ASP.NET's forms authentication.",
|
||||
"description": "ASP.NET Core middleware that enables an application to use cookie based authentication.",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"authentication",
|
||||
"security"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
@ -17,7 +22,7 @@
|
|||
"Microsoft.Extensions.WebEncoders": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"net451": { },
|
||||
"netstandard1.3": {
|
||||
"imports": [
|
||||
"dotnet5.4"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ using Microsoft.Extensions.Options;
|
|||
namespace Microsoft.AspNetCore.Authentication.Facebook
|
||||
{
|
||||
/// <summary>
|
||||
/// An ASP.NET middleware for authenticating users using Facebook.
|
||||
/// An ASP.NET Core middleware for authenticating users using Facebook.
|
||||
/// </summary>
|
||||
public class FacebookMiddleware : OAuthMiddleware<FacebookOptions>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET 5 middleware that enables an application to support Facebook's OAuth 2.0 authentication workflow.",
|
||||
"description": "ASP.NET Core middleware that enables an application to support Facebook's OAuth 2.0 authentication workflow.",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"authentication",
|
||||
"security"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
@ -15,7 +20,7 @@
|
|||
"Microsoft.AspNetCore.Authentication.OAuth": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"net451": { },
|
||||
"netstandard1.3": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ using Microsoft.Extensions.Options;
|
|||
namespace Microsoft.AspNetCore.Authentication.Google
|
||||
{
|
||||
/// <summary>
|
||||
/// An ASP.NET middleware for authenticating users using Google OAuth 2.0.
|
||||
/// An ASP.NET Core middleware for authenticating users using Google OAuth 2.0.
|
||||
/// </summary>
|
||||
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable", Justification = "Middleware are not disposable.")]
|
||||
public class GoogleMiddleware : OAuthMiddleware<GoogleOptions>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET 5 contains middlewares to support Google's OpenId and OAuth 2.0 authentication workflows.",
|
||||
"description": "ASP.NET Core contains middleware to support Google's OpenId and OAuth 2.0 authentication workflows.",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"authentication",
|
||||
"security"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
@ -15,7 +20,7 @@
|
|||
"Microsoft.AspNetCore.Authentication.OAuth": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"net451": { },
|
||||
"netstandard1.3": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET 5 middleware that enables an application to receive an OpenID Connect bearer token.",
|
||||
"description": "ASP.NET Core middleware that enables an application to receive an OpenID Connect bearer token.",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"authentication",
|
||||
"security"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
@ -16,7 +21,7 @@
|
|||
"Microsoft.IdentityModel.Protocols.OpenIdConnect": "2.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"net451": { },
|
||||
"netstandard1.3": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ using Microsoft.Extensions.Options;
|
|||
namespace Microsoft.AspNetCore.Authentication.MicrosoftAccount
|
||||
{
|
||||
/// <summary>
|
||||
/// An ASP.NET middleware for authenticating users using the Microsoft Account service.
|
||||
/// An ASP.NET Core middleware for authenticating users using the Microsoft Account service.
|
||||
/// </summary>
|
||||
public class MicrosoftAccountMiddleware : OAuthMiddleware<MicrosoftAccountOptions>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET 5 middleware that enables an application to support the Microsoft Account authentication workflow.",
|
||||
"description": "ASP.NET Core middleware that enables an application to support the Microsoft Account authentication workflow.",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"authentication",
|
||||
"security"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
@ -15,7 +20,7 @@
|
|||
"Microsoft.AspNetCore.Authentication.OAuth": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"net451": { },
|
||||
"netstandard1.3": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ using Microsoft.Extensions.Options;
|
|||
namespace Microsoft.AspNetCore.Authentication.OAuth
|
||||
{
|
||||
/// <summary>
|
||||
/// An ASP.NET middleware for authenticating users using OAuth services.
|
||||
/// An ASP.NET Core middleware for authenticating users using OAuth services.
|
||||
/// </summary>
|
||||
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable", Justification = "Middleware are not disposable.")]
|
||||
public class OAuthMiddleware<TOptions> : AuthenticationMiddleware<TOptions> where TOptions : OAuthOptions, new()
|
||||
|
|
@ -112,7 +112,7 @@ namespace Microsoft.AspNetCore.Authentication.OAuth
|
|||
}
|
||||
|
||||
Backchannel = new HttpClient(Options.BackchannelHttpHandler ?? new HttpClientHandler());
|
||||
Backchannel.DefaultRequestHeaders.UserAgent.ParseAdd("Microsoft ASP.NET OAuth middleware");
|
||||
Backchannel.DefaultRequestHeaders.UserAgent.ParseAdd("Microsoft ASP.NET Core OAuth middleware");
|
||||
Backchannel.Timeout = Options.BackchannelTimeout;
|
||||
Backchannel.MaxResponseContentBufferSize = 1024 * 1024 * 10; // 10 MB
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET 5 middleware that enables an application to support any standard OAuth 2.0 authentication workflow.",
|
||||
"description": "ASP.NET Core middleware that enables an application to support any standard OAuth 2.0 authentication workflow.",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"authentication",
|
||||
"security"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
|
|||
|
|
@ -17,14 +17,14 @@ using Microsoft.IdentityModel.Protocols.OpenIdConnect;
|
|||
namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
|
||||
{
|
||||
/// <summary>
|
||||
/// ASP.NET middleware for obtaining identities using OpenIdConnect protocol.
|
||||
/// ASP.NET Core middleware for obtaining identities using OpenIdConnect protocol.
|
||||
/// </summary>
|
||||
public class OpenIdConnectMiddleware : AuthenticationMiddleware<OpenIdConnectOptions>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a <see cref="OpenIdConnectMiddleware"/>
|
||||
/// </summary>
|
||||
/// <param name="next">The next middleware in the ASP.NET pipeline to invoke.</param>
|
||||
/// <param name="next">The next middleware in the middleware pipeline to invoke.</param>
|
||||
/// <param name="dataProtectionProvider"> provider for creating a data protector.</param>
|
||||
/// <param name="loggerFactory">factory for creating a <see cref="ILogger"/>.</param>
|
||||
/// <param name="encoder"></param>
|
||||
|
|
@ -134,7 +134,7 @@ namespace Microsoft.AspNetCore.Authentication.OpenIdConnect
|
|||
}
|
||||
|
||||
Backchannel = new HttpClient(Options.BackchannelHttpHandler ?? new HttpClientHandler());
|
||||
Backchannel.DefaultRequestHeaders.UserAgent.ParseAdd("Microsoft ASP.NET OpenIdConnect middleware");
|
||||
Backchannel.DefaultRequestHeaders.UserAgent.ParseAdd("Microsoft ASP.NET Core OpenIdConnect middleware");
|
||||
Backchannel.Timeout = Options.BackchannelTimeout;
|
||||
Backchannel.MaxResponseContentBufferSize = 1024 * 1024 * 10; // 10 MB
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"version": "0.1.0-*",
|
||||
"description": "ASP.NET 5 middleware that enables an application to support the OpenID Connect authentication workflow.",
|
||||
"description": "ASP.NET Core middleware that enables an application to support the OpenID Connect authentication workflow.",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"authentication",
|
||||
"security"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
@ -16,7 +21,7 @@
|
|||
"Microsoft.IdentityModel.Protocols.OpenIdConnect": "2.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"net451": { },
|
||||
"netstandard1.3": {
|
||||
"imports": [
|
||||
"dotnet5.4",
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ using Microsoft.Extensions.Options;
|
|||
namespace Microsoft.AspNetCore.Authentication.Twitter
|
||||
{
|
||||
/// <summary>
|
||||
/// ASP.NET middleware for authenticating users using Twitter
|
||||
/// ASP.NET Core middleware for authenticating users using Twitter.
|
||||
/// </summary>
|
||||
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable", Justification = "Middleware are not disposable.")]
|
||||
public class TwitterMiddleware : AuthenticationMiddleware<TwitterOptions>
|
||||
|
|
@ -109,7 +109,7 @@ namespace Microsoft.AspNetCore.Authentication.Twitter
|
|||
_httpClient.Timeout = Options.BackchannelTimeout;
|
||||
_httpClient.MaxResponseContentBufferSize = 1024 * 1024 * 10; // 10 MB
|
||||
_httpClient.DefaultRequestHeaders.Accept.ParseAdd("*/*");
|
||||
_httpClient.DefaultRequestHeaders.UserAgent.ParseAdd("Microsoft ASP.NET Twitter middleware");
|
||||
_httpClient.DefaultRequestHeaders.UserAgent.ParseAdd("Microsoft ASP.NET Core Twitter middleware");
|
||||
_httpClient.DefaultRequestHeaders.ExpectContinue = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET 5 middleware that enables an application to support Twitter's OAuth 2.0 authentication workflow.",
|
||||
"description": "ASP.NET Core middleware that enables an application to support Twitter's OAuth 2.0 authentication workflow.",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"authentication",
|
||||
"security"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET 5 common types used by the various authentication middleware.",
|
||||
"description": "ASP.NET Core common types used by the various authentication middleware components.",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"authentication",
|
||||
"security"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET 5 authorization classes.",
|
||||
"description": "ASP.NET 5 authorization classes.\r\nCommonly used types:\r\nMicrosoft.AspNetCore.Authorization.AllowAnonymousAttribute\r\nMicrosoft.AspNetCore.Authorization.AuthorizeAttribute",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"authorization"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"description": "ASP.NET 5 cookie policy classes.",
|
||||
"description": "ASP.NET Core cookie policy classes to control the behavior of cookies.",
|
||||
"tags": [
|
||||
"aspnetcore"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/aspnet/security"
|
||||
|
|
@ -16,7 +19,7 @@
|
|||
"Microsoft.Extensions.Options": "1.0.0-*"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": {},
|
||||
"net451": { },
|
||||
"netstandard1.3": {
|
||||
"imports": [
|
||||
"dotnet5.4"
|
||||
|
|
|
|||
|
|
@ -1,17 +1,23 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"version": "1.0.0-*",
|
||||
"compilationOptions": {
|
||||
"warningsAsErrors": true,
|
||||
"keyFile": "../../tools/Key.snk",
|
||||
"nowarn": [ "CS1591" ],
|
||||
"xmlDoc": true
|
||||
},
|
||||
"description": "A compatibility layer for sharing authentication tickets between Microsoft.Owin.Security and Microsoft.AspNetCore.Authentication.",
|
||||
"dependencies": {
|
||||
"Microsoft.AspNetCore.DataProtection.Extensions": "1.0.0-*",
|
||||
"Microsoft.Owin.Security": "3.0.1"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": { }
|
||||
}
|
||||
"description": "A compatibility layer for sharing authentication tickets between Microsoft.Owin.Security and Microsoft.AspNetCore.Authentication.",
|
||||
"tags": [
|
||||
"aspnetcore",
|
||||
"katana",
|
||||
"owin",
|
||||
"security"
|
||||
],
|
||||
"dependencies": {
|
||||
"Microsoft.AspNetCore.DataProtection.Extensions": "1.0.0-*",
|
||||
"Microsoft.Owin.Security": "3.0.1"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": { }
|
||||
}
|
||||
}
|
||||
|
|
@ -31,7 +31,7 @@ namespace Microsoft.Owin.Security.Interop
|
|||
|
||||
var dataProtection = new DataProtectionProvider(new DirectoryInfo("..\\..\\artifacts"));
|
||||
var dataProtector = dataProtection.CreateProtector(
|
||||
"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware", // full name of the ASP.NET 5 type
|
||||
"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware", // full name of the ASP.NET Core type
|
||||
CookieAuthenticationDefaults.AuthenticationType, "v2");
|
||||
|
||||
var interopServer = TestServer.Create(app =>
|
||||
|
|
@ -87,7 +87,7 @@ namespace Microsoft.Owin.Security.Interop
|
|||
|
||||
var dataProtection = new DataProtectionProvider(new DirectoryInfo("..\\..\\artifacts"));
|
||||
var dataProtector = dataProtection.CreateProtector(
|
||||
"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware", // full name of the ASP.NET 5 type
|
||||
"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware", // full name of the ASP.NET Core type
|
||||
CookieAuthenticationDefaults.AuthenticationType, "v2");
|
||||
|
||||
var builder = new WebHostBuilder()
|
||||
|
|
|
|||
Loading…
Reference in New Issue