зеркало из https://github.com/Azure/azure-saas.git
Merge pull request #180 from Azure/feature/Julian/AssignSsoUserId
Assign SSO User Id
This commit is contained in:
Коммит
c8a180f0a4
|
@ -1,4 +1,5 @@
|
|||
using Saas.SignupAdministration.Web.Services.StateMachine;
|
||||
using Dawn;
|
||||
using Saas.SignupAdministration.Web.Services.StateMachine;
|
||||
|
||||
|
||||
namespace Saas.SignupAdministration.Web.Services
|
||||
|
@ -31,7 +32,7 @@ namespace Saas.SignupAdministration.Web.Services
|
|||
OnboardingWorkflowItem? item = _persistenceProvider.Retrieve<OnboardingWorkflowItem>(SR.OnboardingWorkflowItemKey);
|
||||
OnboardingWorkflowState? state = _persistenceProvider.Retrieve<OnboardingWorkflowState>(SR.OnboardingWorkflowStateKey);
|
||||
|
||||
OnboardingWorkflowItem = (item is null) ? new() : item;
|
||||
OnboardingWorkflowItem = (item is null) ? new(Guard.Argument(applicationUser?.NameIdentifier).NotNull().NotDefault().ToString()) : item;
|
||||
OnboardingWorkflowState = (state is null) ? new() : state;
|
||||
}
|
||||
|
||||
|
|
|
@ -50,12 +50,18 @@ namespace Saas.SignupAdministration.Web.Services
|
|||
Initialize();
|
||||
}
|
||||
|
||||
public OnboardingWorkflowItem(string userId)
|
||||
{
|
||||
Id = Guid.NewGuid();
|
||||
OnboardingWorkflowName = SR.OnboardingWorkflowName;
|
||||
UserId = userId;
|
||||
Created = DateTime.Now;
|
||||
}
|
||||
|
||||
private void Initialize()
|
||||
{
|
||||
Id = Guid.NewGuid();
|
||||
OnboardingWorkflowName = SR.OnboardingWorkflowName;
|
||||
|
||||
// TODO: UserId needs to be replaced with value from SSO
|
||||
UserId = Guid.NewGuid().ToString();
|
||||
Created = DateTime.Now;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче