Skip to content

Commit

Permalink
fix: external login
Browse files Browse the repository at this point in the history
closes #228 #229
  • Loading branch information
aguacongas committed Sep 30, 2020
1 parent ff271e4 commit d407da1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public async Task<IActionResult> Callback()
var name = principal.FindFirst(JwtClaimTypes.Name)?.Value ?? user.Id;

// issue authentication cookie for user
var isuser = new IdentityServerUser(providerUserId)
var isuser = new IdentityServerUser(user.Id)
{
DisplayName = user.UserName,
IdentityProvider = provider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected override async Task OnInitializedAsync()
private void SetPathsCulture()
{
var settings = _options.Value;
settings.RemoteRegisterPath = SetCultureInPath(settings.RemoteProfilePath);
settings.RemoteRegisterPath = SetCultureInPath(settings.RemoteRegisterPath);
settings.RemoteProfilePath = SetCultureInPath(settings.RemoteProfilePath);
var oidcSettings = _oidcOptions.Value;
oidcSettings.Authority = SetCultureInPath(oidcSettings.Authority);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ private static DynamicAuthenticationBuilder CreateDynamicAuthenticationBuilder<T
.AddDynamic<TSchemeDefinition>();

dynamicBuilder.AddGoogle(options =>
{
options.Events = new OAuthEvents
{
OnTicketReceived = OnTicketReceived<TUser>()
};
})
options.Events = new OAuthEvents
{
OnTicketReceived = OnTicketReceived<TUser>()
};
})
.AddFacebook(options =>
{
options.Events = new OAuthEvents
Expand Down

0 comments on commit d407da1

Please sign in to comment.