I have registered Client app to Manager users of Azure AD B2C. Now I want to use that app to manage users through a UWP application. but this code is not working
var app = ConfidentialClientApplicationBuilder
.Create(config.ClientId)
.WithClientSecret(config.ClientSecret)
.WithTenantId(config.Tenant)
.Build();
Throwing 'Confidential Client flows are not available on mobile platforms or on Mac
I should be able to do whatever I want even this exposes a secret in devices, that should be my decision.
Workaround
Create your own IAuthenticationProvider and refresh token manually using REST calls