Giter Site home page Giter Site logo

Comments (2)

glime-ai avatar glime-ai commented on June 9, 2024

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:

  1. Remove or comment out the UseIdentity and UseDefaultAuthentication configuration in your Program.cs or Startup.cs file, which sets up the default identity features and authentication.

  2. 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).

  3. 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.

albourm avatar albourm commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.