Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ project.lock.json

# Build results

artifacts/
[Dd]ebug/
[Rr]elease/
x64/
Expand Down
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: csharp
sudo: false
dist: trusty
dist: xenial
addons:
apt:
packages:
Expand All @@ -9,17 +9,15 @@ addons:
- libicu-dev
- libssl-dev
- libunwind8
- zlib1g
env:
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
- NUGET_XMLDOC_MODE: skip
mono: none
os:
- linux
- osx
osx_image: xcode8.2
before_install:
- if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install openssl; ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi
osx_image: xcode8.3
script:
- ./build.sh
- ./build.sh
4 changes: 2 additions & 2 deletions AspNet.Security.OpenId.Providers.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
# Visual Studio Version 16
VisualStudioVersion = 16.0.28803.156
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{74A61C02-16BE-4F6F-B378-4CBB7E743A37}"
ProjectSection(SolutionItems) = preProject
Expand Down
2 changes: 0 additions & 2 deletions build/dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<IdentityModelCoreVersion>2.1.4</IdentityModelCoreVersion>
<JetBrainsVersion>11.0.0</JetBrainsVersion>
<JsonNetVersion>10.0.3</JsonNetVersion>
<NetStandardImplicitPackageVersion>2.0.0</NetStandardImplicitPackageVersion>
<RuntimeFrameworkVersion>2.0.0</RuntimeFrameworkVersion>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion build/packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<Product>aspnet-contrib</Product>
<PackageIconUrl>https://avatars3.githubusercontent.com/u/7998081?s=64</PackageIconUrl>
<PackageProjectUrl>https://github.com/aspnet-contrib/AspNet.Security.OpenId.Providers</PackageProjectUrl>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</PackageLicenseUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>git://github.com/aspnet-contrib/AspNet.Security.OpenId.Providers</RepositoryUrl>
</PropertyGroup>
Expand Down
8 changes: 8 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"sdk": {
"version": "2.2.106"
},
"msbuild-sdks": {
"Internal.AspNetCore.Sdk": "2.2.1-build-20190508.1"
}
}
4 changes: 2 additions & 2 deletions korebuild-lock.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version:2.1.0-rtm-15783
commithash:5fc2b2f607f542a2ffde11c19825e786fc1a3774
version:2.2.1-build-20190508.1
commithash:c3299b1979b3cdae35844bcbaa8b9d753c4d2737
4 changes: 2 additions & 2 deletions korebuild.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/release/2.1/tools/korebuild.schema.json",
"channel": "release/2.1"
"$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/release/2.2/tools/korebuild.schema.json",
"channel": "release/2.2"
}
15 changes: 3 additions & 12 deletions samples/Mvc.Client/Mvc.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,16 @@
<Import Project="..\..\build\dependencies.props" />

<PropertyGroup>
<TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
<AspNetCoreVersion>2.2.4</AspNetCoreVersion>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\AspNet.Security.OpenId.Steam\AspNet.Security.OpenId.Steam.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.AspNetCore.App" Version="$(AspNetCoreVersion)" />
</ItemGroup>

</Project>
7 changes: 3 additions & 4 deletions samples/Mvc.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ public static class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
CreateWebHostBuilder(args).Build().Run();
}

public static IWebHost BuildWebHost(string[] args) =>
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
.UseStartup<Startup>();
}
}
6 changes: 4 additions & 2 deletions samples/Mvc.Client/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
}
},
"web": {
"commandName": "web",
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "http://localhost:5000/",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
}
5 changes: 3 additions & 2 deletions samples/Mvc.Client/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;

namespace Mvc.Client
Expand Down Expand Up @@ -51,7 +52,7 @@ public void ConfigureServices(IServiceCollection services)

.AddSteam();

services.AddMvc();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
}

public void Configure(IApplicationBuilder app)
Expand All @@ -63,4 +64,4 @@ public void Configure(IApplicationBuilder app)
app.UseMvc();
}
}
}
}
4 changes: 2 additions & 2 deletions samples/Mvc.Client/web.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
</system.webServer>
</configuration>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* for more information concerning the license and the contributors participating to this project.
*/

using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Authentication;

namespace AspNet.Security.OpenId.Steam
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// Exposes convenient extensions that can be used to add an instance
/// of the Steam authentication middleware in an ASP.NET 5 pipeline.
/// of the Steam authentication middleware in an ASP.NET Core pipeline.
/// </summary>
public static class SteamAuthenticationExtensions
{
Expand Down
14 changes: 2 additions & 12 deletions src/AspNet.Security.OpenId/OpenIdAuthenticationConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,8 @@ public class Retriever : IConfigurationRetriever<OpenIdAuthenticationConfigurati
/// <param name="parser">The HTML parser used to parse the discovery documents.</param>
public Retriever([NotNull] HttpClient client, [NotNull] HtmlParser parser)
{
if (client == null)
{
throw new ArgumentNullException(nameof(client));
}

if (parser == null)
{
throw new ArgumentNullException(nameof(parser));
}

HttpClient = client;
HtmlParser = parser;
HttpClient = client ?? throw new ArgumentNullException(nameof(client));
HtmlParser = parser ?? throw new ArgumentNullException(nameof(parser));
}

/// <summary>
Expand Down