Comments (4)
We are seeing this in our project too, any idea what might be causing this?
from duende.identityserver.admin.
It appears to be something strange with how the staticwebassets for the Skoruba.Duende.IdentityServer.Admin.UI NuGet package are handled / processed when running in a non-development environment.
For my custom Duende.IdentityServer.Admin project generated using the template, if I:
- Move the directory:
{$USERPROFILE}.nuget\packages\skoruba.duende.identityserver.admin.ui\1.1.0\staticwebassets
to {$MyTemplateGeneratedProjectName}\src{$MyTemplateGeneratedProjectName}.Admin\wwwroot
- Remove the importing of the staticwebassests as a dependency for the Skoruba.Duende.IdentityServer.Admin.UI NuGet package, which I achieved in a "hacky" way by deleting the line:
from the file:
{$USERPROFILE}.nuget\packages\skoruba.duende.identityserver.admin.ui\1.1.0\build\Skoruba.Duende.IdentityServer.Admin.UI.props
- Finally, rebuild my custom Duende.IdentityServer.Admin project.
Then the styles for the Admin project are found successfully when running in an non-development configuration.
Perhaps the manner in which the staticwebassets are being packaged can be improved upon?
The only real documentation I found from Microsoft on this is the following blog post:
https://devblogs.microsoft.com/dotnet/build-client-web-assets-for-your-razor-class-library/
and this documentation page:
from duende.identityserver.admin.
Thank you @selangley-wa. Just added webBuilder.UseStaticWebAssets();
to Programs.cs
file for Duende.IdentityServer.Admin project and it works!
from duende.identityserver.admin.
Thank you for your PR, I will merge, sorry for the delay, I was busy.
from duende.identityserver.admin.
Related Issues (20)
- Startup exception using docker image
- IDX20803 - Unable to obtain configuration from 'System.String' HOT 2
- Redirect with webauthenticator doesn't seem to work correctly HOT 1
- Admin link on STS site not showing HOT 2
- Incorrect id return after post properties to client in Admin API
- Issues cloning the repository HOT 2
- Access token life time HOT 6
- Password expiration
- Service restart issue
- Unable to modify allowed characters in username.
- Permission based authorization
- User.IsInRole must be true for one of the following roles: (MyRole) HOT 1
- Seeding not working with new data
- Upgrade to .NET 7 HOT 6
- Sorry, there was an error : invalid_request Invalid redirect_uri HOT 3
- Data initialization problem HOT 1
- How to assign grants to particular user
- Certificate requirement when deploying to Azure App Service HOT 1
- Let user select a claim value during authentication
- Get forbidden from admin site HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duende.identityserver.admin.