|
|
@ -1,4 +1,5 @@ |
|
|
using System.Linq; |
|
|
using System.Linq; |
|
|
|
|
|
using AspNet.Security.OAuth.GitHub; |
|
|
using CryptoHelper; |
|
|
using CryptoHelper; |
|
|
using Microsoft.AspNetCore.Builder; |
|
|
using Microsoft.AspNetCore.Builder; |
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
@ -96,6 +97,12 @@ namespace Mvc.Server { |
|
|
ConsumerSecret = "Il2eFzGIrYhz6BWjYhVXBPQSfZuS4xoHpSSyD9PI" |
|
|
ConsumerSecret = "Il2eFzGIrYhz6BWjYhVXBPQSfZuS4xoHpSSyD9PI" |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
app.UseGitHubAuthentication(new GitHubAuthenticationOptions { |
|
|
|
|
|
ClientId = "49e302895d8b09ea5656", |
|
|
|
|
|
ClientSecret = "98f1bf028608901e9df91d64ee61536fe562064b", |
|
|
|
|
|
Scope = { "user:email" } |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
// Note: OpenIddict must be added after
|
|
|
// Note: OpenIddict must be added after
|
|
|
// ASP.NET Identity and the external providers.
|
|
|
// ASP.NET Identity and the external providers.
|
|
|
app.UseOpenIddict(options => { |
|
|
app.UseOpenIddict(options => { |
|
|
|