Tried a lot of different things, but I probably have somehthing wrong on my mind...
Some help would be great.
Error:
AADSTS50049: Unknown or invalid instance.
Trace ID: e438b040-a6a5-498f-adf8-791940c71600
Correlation ID: a5bb4fa8-4d4b-477f-8a6c-aef8f577bc2a
Timestamp: 2023-03-22 14:48:54Z
Code:
AADSTS50049: Unknown or invalid instance.
Trace ID: e438b040-a6a5-498f-adf8-791940c71600
Correlation ID: a5bb4fa8-4d4b-477f-8a6c-aef8f577bc2a
Timestamp: 2023-03-22 14:48:54Z
Code:
var clientId = Guid.NewGuid().ToString();
var policy = "B2C_1_Policy";
var redirecturi = "https://online-genesis-serviceapi.azurewebsites.net";
var authority = "https://thermialogin.b2clogin.com/thermialogin.onmicrosoft.com/B2C_1A_SignUpOrSigninOnline/";
//var pca = new PublicClientApplication(clientid, authority) { RedirectUri = redirecturi };
string[] scopes = new string[] { "*" };
IPublicClientApplication app;
app = PublicClientApplicationBuilder.Create(clientId)
.WithAuthority(authority)
.Build();
// var accounts = await app.GetAccountsAsync();
AuthenticationResult result = null;
try
{
result = await app.AcquireTokenByUsernamePassword(scopes,