Hello,
Blazor.Wasm is similar to angular application when deploying.
You can add a Dockerfile to build locally:
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS build
COPY bin/Release/net6.0/publish/ app/
FROM nginx:alpine AS final
WORKDIR /usr/share/nginx/html
COPY --from=build /app/wwwroot .
COPY /nginx.conf /etc/nginx/conf.d/default.conf
nginx.conf:
server {
listen 80;
listen [::]:80;
server_name _;
access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html =404;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Thanks for reporting. I'll update the microservice template for docker and kubernetes containing blazor deployment.
You can use HTTPS redirection at OnApplicationInitialization
:
...
app.UseHsts();
app.UseHttpsRedirection();
...
that should redirect incoming HTTP to HTTPS. However, I am not sure if this will work if you have a proxy (or web-server configuration) that redirects incoming HTTPS to HTTP.
Do you have any proxy or web-server configuration between your application and azure that can be redirecting HTTPS to HTTP? If not, can you also contact to Azure support about why OpenId Connect configuration doesn't respect to Azure application configuration?
Do you have redirectURI configured as HTTPS on Azure App registry? Can you share information about your azure app registration?
In OnApplicationInitialization
:
app.UseCorrelationId();
app.UseStaticFiles(); //Add this line
app.UseCors();
I have refunded your question, we'll fix it in the first patch.
In OnApplicationInitialization
:
app.UseCorrelationId();
app.UseStaticFiles(); //Add this line
app.UseCors();
I have refunded your question, we'll fix it in the first patch.
Hello,
You can check the updated article about adding custom properties to the user entity.
See also Object Extensions docs
What is your abp suite version?
The concept of Authentication Server is the web server where the IdentityServer is hosted.
Although, you can use different logout pages for your applications;
These applications will still authenticate against the same AuthServer. They will just see different login pages.
Also, what do you mean by separating the work load of customer portal and admin portal? The point of AuthServer is authenticating your users from a single point. You can always build 2 different applications using 2 different user stores (user tables).
There is no login sample project for Xamarin forms but there are some community articles about Xamarin that might help.
It is not released yet.