Comments (2)
To integrate Windows Authentication into your Elsa Blazor application and disable the default identity features, you will need to configure your application to use Windows Authentication and remove or modify the default identity configuration.
Here's a general approach to disable the default identity and use Windows Authentication:
-
Remove or comment out the
UseIdentity
andUseDefaultAuthentication
configuration in yourProgram.cs
orStartup.cs
file, which sets up the default identity features and authentication. -
Configure Windows Authentication in your application. This typically involves setting up the authentication scheme to use Windows Authentication and ensuring your application runs in an environment where Windows Authentication is supported (like IIS).
-
You may also need to configure authorization policies based on Windows user roles or groups if you want to restrict access to certain parts of the application.
Here's an example of how you might modify your Program.cs
or Startup.cs
to use Windows Authentication:
// Remove or comment out the following lines:
// elsa.UseIdentity(identity => { ... });
// elsa.UseDefaultAuthentication(auth => auth.UseAdminApiKey());
// Add Windows Authentication services.
builder.Services.AddAuthentication(IISDefaults.AuthenticationScheme);
// Add authorization if needed.
builder.Services.AddAuthorization(options =>
{
// Define your authorization policies here.
});
Please note that the exact steps may vary depending on your application's setup and the version of ASP.NET Core you are using. Additionally, you should ensure that your hosting environment is properly configured to support Windows Authentication.
If you encounter any issues or need further assistance, please provide more details about your current setup, and I'll be happy to help you further.
from elsa-core.
If I disable the default identity configuration, it still asks me to login using the default credential. and if I pass the credential and navigate to the workflow definition, it is not working.
from elsa-core.
Related Issues (20)
- variables HOT 1
- PlainTextHttpContentParser doesn't handle application/xml and text/xml or text/html content HOT 5
- Add the possibility to Tag workflows. HOT 3
- How to config the specific implementation of IActivityExecutionMiddleware in Program.cs? HOT 1
- I config the specific implementation of IActivityExecutionMiddleware in Program.cs,but have a Exception. HOT 2
- I config the specific implementation of IActivityExecutionMiddleware in Program.cs, But it seems to have some issues running. HOT 1
- I config the specific implementation of IActivityExecutionMiddleware in Program.cs, But the activity Always r running,not ending. HOT 2
- Handle and Log Exceptions for Invalid Cron Expressions in Bookmarks
- How implement a specific IActivityExecutionMiddleware and configure it in Program.cs by Elsa3.0? HOT 2
- I implement a specific IActivityExecutionMiddleware and configure it in Program.cs by Elsa3.0,but I have a few questions. HOT 1
- How to subscribe to workflow and activity events to get changed status using Elsa 3.0? HOT 4
- How to change Elsa Studio(v3) HttpEndpoint Activity BaseUrl? HOT 3
- How to set Authorization: ApiKey {ApiKey} in Elsa Server Side?
- What is the using of CorrelationId? HOT 1
- How to create a workflow instance without immediately executing it and execut it later? HOT 4
- Enhance BulkDispatchWorkflows to Support Dynamic Input Mapping
- ExecutionLogMiddleware use ActivityNode to check if that avitivy already bookmarked, which might be wrong if looping activity used HOT 2
- Optimize SQL Query Execution for HTTP Workflows HOT 1
- Optimize HTTP Workflows by Avoiding Unnecessary Distributed Locks
- Open Suspended instance HOT 10
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 elsa-core.