hi
Blazor Server and WASM apps can only redirect to the AuthServer project to sign in(code flow).
Thanks.
hi
Please set the issuer, and add a middleware to set ctx.Request.Scheme to HTTPS
public override void PreConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<OpenIddictServerBuilder>(serverBuilder =>
{
serverBuilder.AddProductionEncryptionAndSigningCertificate("openiddict.pfx", configuration["AuthServer:CertificatePassPhrase"]!);
serverBuilder.SetIssuer(new Uri(configuration["AuthServer:Authority"]!));
});
}
public override void OnApplicationInitialization(ApplicationInitializationContext context)
{
var app = context.GetApplicationBuilder();
var env = context.GetEnvironment();
app.Use((ctx, next) =>
{
/* This application should act like it is always called as HTTPS.
* Because it will work in a HTTPS url in production,
* but the HTTPS is stripped out in Ingress controller.
*/
ctx.Request.Scheme = "https";
return next();
});
XXXCore and XXXAuth are both auth servers.
So you can use a username and password to get an access token from them.
But the user has to exist in their database.
hi
After creating a user in your XXXCore database, you can send a token request to XXXCore to obtain the user access token.
Thanks,
Great : )
hi
The Blazor Server and WASM use different authentication methods.
In a short, Blazor Server and WASM can't use your EmployeeNumberGrant
Thanks,.
hi
Your app will add initial EF Core migrations if it doesn't exist.
If you want to remove all migrations, Just delete Migrations folder.
BTW, there is an empty Armada.EntityFrameworkCore folder. Maybe you can try to remove it, I think this is why the app can't find the right folder.
Thanks.
hi
Do you have an EF Core migrations file in your EF Core project?
Thanks.