Ejemplo n.º 1
0
        public async Task <IActionResult> OnGet()
        {
            string connectionId = User.GetConnectionId();

            if (connectionId == null)
            {
                return(RedirectToPage("./Connect", new { returnUrl = Url.Page("./ConnectionOffer") }));
            }

            Offer = await _passportService.IssueEmailCredentialAsync(connectionId, "*****@*****.**");

            return(Page());
        }
 public async Task OnGet()
 {
     Credential = await _credService.IssueEmailCredentialAsync(connectionId : null, "*****@*****.**");
 }