You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
1.2 KiB

//using Duende.IdentityServer.Services;
//using Identity.Infrastructure.Dtos;
//using Identity.Realization;
//using Microsoft.AspNetCore.Components;
//namespace Identity.Pages;
//public partial class Consent
//{
// [Parameter]
// [SupplyParameterFromQuery]
// public string ReturnUrl { get; set; }
// public bool Remember { get; set; }
// private IEnumerable<string> RawScopeValues { get; set; }
// protected override async Task OnAfterRenderAsync(bool firstRender)
// {
// if (firstRender)
// {
// var context = await Spa.GetContextAsync(ReturnUrl);
// RawScopeValues = context.Scopes;
// StateHasChanged();
// }
// }
// private async Task Yes()
// {
// await PostConsentAsync(false);
// }
// private async Task No()
// {
// await PostConsentAsync(true);
// }
// private async Task PostConsentAsync(bool deny)
// {
// await Spa.PostConsentAsync(new ConsentDto()
// {
// Deny = deny,
// Remember = Remember,
// ReturnUrl = ReturnUrl,
// });
// }
// //[Inject] IIdentityServerInteractionService Interaction { get; set; }
// [Inject] SpaService Spa { get; set; }
//}