Skip to content

Commit a5b1642

Browse files
committed
Fix the sample to use TLS and remove the Orange/Intuit registrations
1 parent dd81f16 commit a5b1642

File tree

4 files changed

+7
-33
lines changed

4 files changed

+7
-33
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AspNet.Security.OpenId.Providers
22

3-
**AspNet.Security.OpenId.Providers** is a **collection of security middleware** that you can use in your **ASP.NET Core** application to support OpenID 2.0 authentication providers like **[Steam](https://steampowered.com/)**, **[Wargaming](https://wargaming.net/)** or **[Orange](https://www.orange.fr/)**. It is directly inspired by **[Jerrie Pelser](https://github.com/jerriep)**'s initiative, **[Owin.Security.Providers](https://github.com/RockstarLabs/OwinOAuthProviders)**.
3+
**AspNet.Security.OpenId.Providers** is a **collection of security middleware** that you can use in your **ASP.NET Core** application to support OpenID 2.0 authentication providers like **[Steam](https://steampowered.com/)** or **[Wargaming](https://wargaming.net/)**. It is directly inspired by **[Jerrie Pelser](https://github.com/jerriep)**'s initiative, **[Owin.Security.Providers](https://github.com/RockstarLabs/OwinOAuthProviders)**.
44

55
**The latest official release can be found on [NuGet](https://www.nuget.org/profiles/aspnet-contrib) and the nightly builds on [MyGet](https://www.myget.org/gallery/aspnet-contrib)**.
66

@@ -34,7 +34,7 @@ See the [/samples](https://github.com/aspnet-contrib/AspNet.Security.OpenId.Prov
3434

3535
**AspNet.Security.OpenId.Providers** is actively maintained by:
3636

37-
* **[Kévin Chalet](https://github.com/kevinchalet)** ([@PinpointTownes](https://twitter.com/PinpointTownes)).
37+
* **[Kévin Chalet](https://github.com/kevinchalet)** ([@kevin_chalet](https://twitter.com/kevin_chalet)).
3838
* **[Martin Costello](https://github.com/martincostello)** ([@martin_costello](https://twitter.com/martin_costello)).
3939
* **[Patrick Westerhoff](https://github.com/poke)** ([@poke](https://twitter.com/poke)).
4040

samples/Mvc.Client/Properties/launchSettings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"windowsAuthentication": false,
44
"anonymousAuthentication": true,
55
"iisExpress": {
6-
"applicationUrl": "http://localhost:54540/",
7-
"sslPort": 0
6+
"applicationUrl": "http://localhost:54879/",
7+
"sslPort": 44316
88
}
99
},
1010
"profiles": {
@@ -18,7 +18,7 @@
1818
"web": {
1919
"commandName": "Project",
2020
"launchBrowser": true,
21-
"launchUrl": "http://localhost:5000/",
21+
"launchUrl": "https://localhost:44316/",
2222
"environmentVariables": {
2323
"ASPNETCORE_ENVIRONMENT": "Development"
2424
}

samples/Mvc.Client/Startup.cs

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
/*
1+
/*
22
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
33
* See https://github.com/aspnet-contrib/AspNet.Security.OpenId.Providers
44
* for more information concerning the license and the contributors participating to this project.
55
*/
66

77
using System;
8-
using AspNet.Security.OpenId;
98
using Microsoft.AspNetCore.Authentication.Cookies;
109
using Microsoft.AspNetCore.Builder;
11-
using Microsoft.AspNetCore.Mvc;
1210
using Microsoft.Extensions.DependencyInjection;
1311

1412
namespace Mvc.Client
@@ -28,30 +26,15 @@ public void ConfigureServices(IServiceCollection services)
2826
options.LogoutPath = "/signout";
2927
})
3028

31-
.AddOpenId("Orange", "Orange", options =>
32-
{
33-
options.Authority = new Uri("https://openid.orange.fr/");
34-
options.CallbackPath = "/signin-orange";
35-
})
36-
3729
.AddOpenId("StackExchange", "StackExchange", options =>
3830
{
3931
options.Authority = new Uri("https://openid.stackexchange.com/");
4032
options.CallbackPath = "/signin-stackexchange";
4133
})
4234

43-
.AddOpenId("Intuit", "Intuit", options =>
44-
{
45-
options.CallbackPath = "/signin-intuit";
46-
options.Configuration = new OpenIdAuthenticationConfiguration
47-
{
48-
AuthenticationEndpoint = "https://openid.intuit.com/OpenId/Provider"
49-
};
50-
})
51-
5235
.AddSteam();
5336

54-
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
37+
services.AddControllersWithViews();
5538
}
5639

5740
public void Configure(IApplicationBuilder app)

samples/Mvc.Client/web.config

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)