Exemple #1
0
        public async Task <IActionResult> InitializePostAsync(Guid clientId)
        {
            if (userPrincipalBuilder.UserPrincipal.Claims.SingleOrDefault(c => c.Type == FurizaClaimNames.ClientId) == null)
            {
                userPrincipalBuilder.UserPrincipal.Claims.Add(new Claim(FurizaClaimNames.ClientId, clientId.ToString()));
            }

            await identityInitializer.InitializeUsersAsync();

            return(NoContent());
        }