Chris Ross
0d45fe73d7
Handle MicrosoftAccount email fallback #9083 ( #9304 )
2019-04-12 08:26:15 -07:00
Pranav K
ae34697797
Fix #9041 - Complain if auth hasn't been set up correctly ( #9181 )
2019-04-11 10:36:21 -07:00
Hao Kung
42b3fada31
Add validation to ensure Cookie.Expiration is not set ( #8967 )
2019-04-02 09:56:37 -07:00
Ryan Nowak
658b37d2bd
Make UseEndpoints a thing ( #8765 )
...
* Make endpoint middleware explicit
This change makes the endpoint middleware explicit again, and updates
all of the templates.
The other change here is make UseEndpoints be the place where you
register endpoints. This is vital because it puts your code visually at
the point of the pipeline where it executes.
Lastly, I removed support for UseMvc with endpoint routing. This is
causing issues for some security features, and we're moving in the
direction of trying to make the middleware heavy implementation required
in 3.0. There are some issues we won't be able to fix in MVC if we can't
unambiguously know if UseMvc was used or the middleware.
2019-03-28 15:41:11 -07:00
Hao Kung
b7e122fbac
Hook auth options validation into validation feature ( #8665 )
2019-03-25 11:35:39 -07:00
Hao Kung
6641a02ff2
Enable AuthSamples.FunctionalTests on helix ( #8691 )
2019-03-25 11:19:27 -07:00
Pranav K
9a35bbea03
Experience for Razor SDK ( #8731 )
...
* Experience for Razor SDK
* Remove Components.Build
* Update MVC projects and templates to use AddRazorSupportForMvc
* Update components templates to use .razor extension
Fixes https://github.com/aspnet/AspNetCore/issues/6392
* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190321.3
- Microsoft.NET.Sdk.Razor - 3.0.0-preview4.19171.3
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview4.19171.3
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview4.19171.3
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview4.19171.3
* Update dependencies from https://github.com/dotnet/core-setup build 20190322.01
- Microsoft.NETCore.App - 3.0.0-preview4-27522-01
Dependency coherency updates
- Microsoft.Bcl.Json.Sources - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- Microsoft.CSharp - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- Microsoft.Win32.Registry - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.ComponentModel.Annotations - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Data.SqlClient - 4.7.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Diagnostics.EventLog - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.IO.Pipelines - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Net.Http.WinHttpHandler - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Net.WebSockets.WebSocketProtocol - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Reflection.Metadata - 1.7.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Runtime.CompilerServices.Unsafe - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Cng - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Pkcs - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Xml - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Security.Permissions - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Security.Principal.Windows - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.ServiceProcess.ServiceController - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Text.Encodings.Web - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- System.Threading.Channels - 4.6.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
- Microsoft.Extensions.DependencyModel - 3.0.0-preview4-27522-01 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.Platforms - 3.0.0-preview4.19164.7 (parent: Microsoft.NETCore.App)
* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190321.4
- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview4.19171.4
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview4.19171.4
- dotnet-ef - 3.0.0-preview4.19171.4
- Microsoft.EntityFrameworkCore - 3.0.0-preview4.19171.4
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview4.19171.4
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview4.19171.4
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview4.19171.4
* Update dependencies from https://github.com/aspnet/Extensions build 20190321.4
- Mono.WebAssembly.Interop - 3.0.0-preview4.19171.4
- Microsoft.JSInterop - 3.0.0-preview4.19171.4
- Microsoft.Internal.Extensions.Refs - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Diagnostics.HealthChecks - 3.0.0-preview4.19171.4
- Microsoft.Extensions.DiagnosticAdapter - 3.0.0-preview4.19171.4
- Microsoft.Extensions.DependencyInjection.Abstractions - 3.0.0-preview4.19171.4
- Microsoft.Extensions.DependencyInjection - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.Xml - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.UserSecrets - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.KeyPerFile - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.Json - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.Ini - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.FileExtensions - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.EnvironmentVariables - 3.0.0-preview4.19171.4
- Microsoft.Extensions.FileProviders.Abstractions - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.CommandLine - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.AzureKeyVault - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.Abstractions - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration - 3.0.0-preview4.19171.4
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Caching.StackExchangeRedis - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Caching.SqlServer - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Caching.Memory - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Caching.Abstractions - 3.0.0-preview4.19171.4
- Microsoft.Extensions.ActivatorUtilities.Sources - 3.0.0-preview4.19171.4
- Microsoft.AspNetCore.Testing - 3.0.0-preview4.19171.4
- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview4.19171.4
- Microsoft.AspNetCore.Analyzer.Testing - 3.0.0-preview4.19171.4
- Internal.AspNetCore.Analyzers - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Configuration.Binder - 3.0.0-preview4.19171.4
- Microsoft.Extensions.FileProviders.Composite - 3.0.0-preview4.19171.4
- Microsoft.Extensions.FileProviders.Embedded - 3.0.0-preview4.19171.4
- Microsoft.Extensions.FileProviders.Physical - 3.0.0-preview4.19171.4
- Microsoft.Extensions.WebEncoders - 3.0.0-preview4.19171.4
- Microsoft.Extensions.ValueStopwatch.Sources - 3.0.0-preview4.19171.4
- Microsoft.Extensions.TypeNameHelper.Sources - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Primitives - 3.0.0-preview4.19171.4
- Microsoft.Extensions.ParameterDefaultValue.Sources - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Options.DataAnnotations - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Options.ConfigurationExtensions - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Options - 3.0.0-preview4.19171.4
- Microsoft.Extensions.ObjectPool - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Logging.TraceSource - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Logging.Testing - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Logging.EventSource - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Logging.Debug - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Logging.Console - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Logging.Configuration - 3.0.0-preview4.19171.4
- Microsoft.Extensions.FileSystemGlobbing - 3.0.0-preview4.19171.4
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview4.19171.4
- Microsoft.Extensions.HostFactoryResolver.Sources - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Hosting - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Hosting.Abstractions - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Http - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Localization - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Localization.Abstractions - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Logging - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Logging.Abstractions - 3.0.0-preview4.19171.4
- Microsoft.Extensions.Logging.AzureAppServices - 3.0.0-preview4.19171.4
* Grab latest from other aspnet repos
- brings everything into coherence
- aspnet/Extensions packages with version 3.0.0-preview4.19172.1 from build 20190322.1
- aspnet/AspNetCore-Tooling packages with version 3.0.0-preview4.19172.2 from build 20190322.2
- aspnet/EntityFrameworkCore packages with version 3.0.0-preview4.19172.3 from build 20190322.3
2019-03-22 17:33:20 -07:00
Andrew Stanton-Nurse
6a73d75688
fix skipped test to actually be skipped ( #8238 )
2019-03-08 10:24:48 -08:00
Chris Ross
5170c31b23
Add details to the JwtBearer error messages #4679 ( #8259 )
2019-03-07 08:15:16 -08:00
David Fowler
4c79e7fdc0
Rename Pipe properties ( #8227 )
...
* Rename Pipe properties
- Rename BodyPipe to BodyReader and BodyWriter on the request and response directly
2019-03-06 07:33:24 -08:00
Andrew Stanton-Nurse
7b24304739
skip flaky SecureDataFormatTest in Helix ( #8129 )
...
related #7366
2019-03-04 07:50:53 -08:00
Chris Ross
93b195e566
Change SameSite default to None #2675 #4661 ( #8043 )
2019-03-01 16:22:12 -08:00
Chris Ross
26d71e6ef6
Fix up Security samples #7765 ( #7767 )
2019-02-22 15:45:20 -08:00
Pavel Krymets
9355c7c1a5
Add reference assemblies support ( #7764 )
2019-02-21 14:33:35 -08:00
Ryan Brandenburg
5a7bfbbc01
Use Bootstrap 3.4.1 and 4.3.1 ( #7719 )
...
Use Bootstrap 3.4.1. and 4.3.1
2019-02-20 15:55:49 -08:00
Nate McMaster
9a2db43848
Follow-up to VS2019 conversion ( #7753 )
...
* Set VS version in file to 16.0.0.0
* Fix for restore failure on Microsoft.AspNetCore.App.Runtime.csproj
2019-02-20 11:02:38 -08:00
Nate McMaster
85ae18c723
Make Visual Studio 2019 a prerequisite to building this repo ( #7005 )
...
Changes:
* Make Visual Studio 2019 a prerequisite for building this repo
* Update .sln files
* Update Windows SDK to 17134
* Update developer docs
* Disable ANCM tests
* Update to .NET Core SDK 3.0 Preview 2
* Use Microsoft.NET.Sdk.Razor as a package consistently accross the repo
* React to changes in metadata from Microsoft.NETCore.App
* React to changes in .NET Core SDK
* Attempt to workaround CodeCheck.ps1 failure which doesn't repro locally or on different agents. Possibly due to differences in the version of the PowerShell task?
* Remove dead YML file
* Rename usages of win7-{x64,x86} to win-{x64,x86}
* Update KoreBuild to 3.0.0-build-20190219.1
2019-02-20 09:53:53 -08:00
Chris Ross
4e44025a52
Replace IHostingEnvironment with IWebHostEnvironment ( #7725 )
2019-02-19 21:11:52 -08:00
Ajay Bhargav Baaskaran
7a26d27e8b
Merge branch 'release/2.2'
2019-02-14 16:08:51 -08:00
Ryan Nowak
f2a1a4542e
Introduce dynamic endpoints and fix #7011 ( #7445 )
...
* Add IDynamicEndpointMetadata for dynamic endpoints
* Use a dynamic endpoint policy for pages
2019-02-13 18:52:07 -08:00
Ajay Bhargav Baaskaran
0c2ee920a1
Merge branch 'release/2.1' into release/2.2
2019-02-13 14:52:38 -08:00
Nate McMaster
338de4710a
Automatically set 'PrivateAssets=All' for .Sources references ( #7539 )
...
When a `<Reference>` is named `*.Sources`, set PrivateAssets=All (exclude from generated nuspec) and IncludeAssets=ContentFiles (only consume content files, not .dll's)
2019-02-13 14:31:15 -08:00
Ajay Bhargav Baaskaran
4cceccd568
Make Mvc repo folder layout consistent ( #7518 )
2019-02-13 10:53:39 -08:00
Nate McMaster
3fd8a97af2
Add targets to generate the list of shared framework assemblies from project property ( #7510 )
...
Changes:
* Add support for a property, `IsAspNetCoreApp`, in the .csproj file of assemblies which are part of the shared framework.
* Remove unused dependencies
* Remove reference which have become part of 'netcoreapp3.0'
2019-02-12 23:00:19 -08:00
Hao Kung
c9499e14e4
Run helix tests on master ( #6728 )
2019-02-07 09:20:08 -08:00
Ryan Brandenburg
ad0377e88f
Bootstrap 3.4.0 ( #7201 )
...
Move bootstrap 3.3 to 3.4 in samples
2019-02-05 14:31:15 -08:00
Chris Ross
67037a0039
Replace JObject with JsonDocument in Authentication ( #7105 )
2019-02-05 13:37:20 -08:00
James Newton-King
09e019841c
Validate required services in UseAuthorization ( #6915 )
2019-02-01 11:14:51 +13:00
James Newton-King
3c7649db88
Add RequireAuthorization method for default policy ( #6916 )
2019-02-01 09:59:11 +13:00
Hao Kung
aeb506c0b0
Remove obsolete 1.x UseIdentity + UseXyz auth API ( #6965 )
...
* Remove obsolete API
* Delete CookieAppBuilderExtensions.cs
* Delete FacebookAppBuilderExtensions.cs
* Delete GoogleAppBuilderExtensions.cs
* Delete JwtBearerAppBuilderExtensions.cs
* Delete MicrosoftAccountAppBuilderExtensions.cs
* Delete OAuthAppBuilderExtensions.cs
* Delete OpenIdConnectAppBuilderExtensions.cs
* Delete TwitterAppBuilderExtensions.cs
2019-01-28 21:37:51 -08:00
James Newton-King
4b8d9666f4
Add startvs.cmd for MVC and Security solutions ( #6943 )
...
* Add startvs.cmd for MVC
* Add startvs.cmd for Security
2019-01-28 15:37:14 -08:00
Chris Ross
65ee89a71e
Remove the google auth patch quirk #6710 ( #6964 )
2019-01-28 12:09:25 -08:00
Nate McMaster
ac04019e42
Remove obsolete build infrastructure ( #6995 )
...
Changes:
* Remove obsolete targets which are unnecessary now that this repo no longer builds git submodules in a separate build process
* Remove the need for static analysis of 'ArtifactInfo' items
* Simplify how the code signing task is configured
* Remove unused repo tasks
* Remove duplicate lists of external dependencies and packages to be produced
* Remove obsolete build definition
* Remove obsolete build script parameters
* Add VisualStudioSetupOutputPath
2019-01-28 09:57:59 -08:00
Pranav K
1aa50faa29
Account for null Endpoint
2019-01-25 15:38:23 -08:00
Pranav K
f2ee3201ae
No-op Authorization middleware for Razor Pages
...
Workaround for https://github.com/aspnet/AspNetCore/issues/7011
2019-01-25 15:38:23 -08:00
Nate McMaster
922512a9fb
Convert the artifacts folder layout to match Arcade ( #6850 )
...
Changes:
* IsProductPackage => IsShippingPackage
* artifacts/$config/packages => artifacts/packages/$config
* packages/product => packages/Shipping
* packages/internal => packages/NonShipping
* Renamed MSBuild properties used for output folders
* Update build tools to use 2 spaces in global.json
2019-01-18 13:38:24 -08:00
Justin Kotalik
1962146730
Add Microsoft.NET.Sdk.Razor
2019-01-16 16:16:04 -08:00
Justin Kotalik
dabd3463ba
few extra conflicts
2019-01-16 14:46:39 -08:00
Justin Kotalik
e6d547a923
Merge branch 'jkotalik/22temp' into jkotalik/masterMerge
2019-01-16 14:39:10 -08:00
John Luo
1bd5845b4c
Merge pull request #6735 from aspnet/johluo/merge22
...
Johluo/merge22
2019-01-16 11:43:35 -08:00
John Luo
e1c4d150f5
Merge fix
2019-01-16 10:31:10 -08:00
Justin Kotalik
959445b271
Target netcoreapp2.2
2019-01-15 22:29:08 -08:00
Chris Ross
d838165642
Fix up how OIDC errors flow ( #4520 )
...
* Add regression test for #4384
* Fix up how OIDC errors flow #4384
2019-01-15 20:59:40 -08:00
John Luo
17b6ce8bd6
Merge branch 'release/2.2'
2019-01-15 18:49:54 -08:00
Justin Kotalik
eacffd56b7
Merge branch 'release/2.1' into release/2.2
2019-01-15 16:37:34 -08:00
Justin Kotalik
e751db0739
Make Auth Samples Project Ref ( #6557 )
2019-01-15 13:12:54 -08:00
Chris Ross
1f892d798d
Add AllowSynchronousIO to TestServer and IIS, fix tests ( #6404 )
2019-01-15 11:48:17 -08:00
James Newton-King
09b50850bc
Update AuthorizeFilter to no-op when AuthorizationMiddleware has run ( #6346 )
2019-01-15 20:29:23 +13:00
John Luo
8f1eedf5a9
Merge branch 'release/2.1' into release/2.2
2019-01-14 19:04:39 -08:00
Kahbazi
5b8d93c9c6
Check iss in odic sign-out ( #6378 )
2019-01-14 14:45:45 -08:00