Add native Bifrost identity registration
This commit is contained in:
parent
445c27978b
commit
23c02be2a6
17 changed files with 366 additions and 29 deletions
|
|
@ -10,6 +10,7 @@ namespace Bifrost.Web.Features.Membership;
|
|||
|
||||
public sealed class MembershipSynchronizationService(
|
||||
BifrostDbContext dbContext,
|
||||
BifrostIdentityService bifrostIdentityService,
|
||||
IOptions<BootstrapOptions> bootstrapOptions,
|
||||
TimeProvider timeProvider)
|
||||
{
|
||||
|
|
@ -97,6 +98,11 @@ public sealed class MembershipSynchronizationService(
|
|||
userAccount.MemberProfile.Nickname = userAccount.DisplayName;
|
||||
}
|
||||
|
||||
await bifrostIdentityService.EnsureIdentityAsync(
|
||||
userAccount,
|
||||
userAccount.GitHubLogin,
|
||||
cancellationToken);
|
||||
|
||||
if (invitation is not null && invitation.AcceptedByUserAccountId is null)
|
||||
{
|
||||
invitation.AcceptedByUserAccountId = userAccount.Id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue