コード例 #1
0
        public async Task <IActionResult> ConfirmIdentity(ConfirmIdentityTemplate template)
        {
            await _identityApplicationService.ConfirmIdentityAsync(new ConfirmIdentityAdto
            {
                IdentityId = _currentIdentityProvider.Id,
                Token      = template.Token
            });

            return(Accepted(_resourceBuilder.Build(new ConfirmIdentityResource())));
        }
 public Task ConfirmIdentityAsync(ConfirmIdentityAdto confirmIdentityAdto)
 {
     return(_securityApplicationService.SecureAsync(() => _identityApplicationService.ConfirmIdentityAsync(confirmIdentityAdto),
                                                    IdentityAuthorisationContext.Create(confirmIdentityAdto.IdentityId, IdentityAuthorisationAction.Confirm)));
 }