Tried that and it did not work. Here is a quick loom https://www.loom.com/share/870a84250a1245d8a0640328916981cc?sid=15d1c9cf-3cbc-49ac-b976-429f9e0db0e6
Hey guys I'm facing this issue after running a fresh version of aspnetzero angular.
Could you guys help, please
Update:
This is what my logs say
at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, JwtSecurityToken outerToken, TokenValidationParameters validationParameters, SecurityToken& signatureValidatedToken) at System.IdentityModel.Tokens.Jwt.JwtSecurityTokenHandler.ValidateToken(String token, TokenValidationParameters validationParameters, SecurityToken& validatedToken) at a365.Web.Authentication.JwtBearer.a365AsyncJwtSecurityTokenHandler.ValidateToken(String securityToken, TokenValidationParameters validationParameters) in Web.Core\Authentication\JwtBearer\a365AsyncJwtSecurityTokenHandler.cs:line 42 at a365.Web.Authentication.JwtBearer.a365AsyncJwtBearerHandler.HandleAuthenticateAsync() in Web.Core\Authentication\JwtBearer\a365AsyncJwtBearerHandler.cs:line 141 INFO 2024-04-23 21:51:31,258 [orker] tion.JwtBearer.a365AsyncJwtBearerHandler - Bearer was not authenticated. Failure message: One or more errors occurred. (IDX10225: Lifetime validation failed. The token is missing an Expiration Time. Tokentype: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.) (IDX10225: Lifetime validation failed. The token is missing an Expiration Time. Tokentype: 'System.IdentityModel.Tokens.Jwt.JwtSecurityToken'.)
It wouldn't work with Elsa 3.0 as a lot has changed on Elsa side.
I see now what happened! This implementation would only work with Elsa 2. The moment I upgraded the Elsa package I ran to the same issue.
Are you guys planning on updating the docs to Elsa 3 implementation?
Yeah thanks!
I followed this blog post but still can't resolve the issue. Added all these packages
Here is my error
Error CS1061 : 'IModule' does not contain a definition for 'UseEntityFrameworkCorePersistence' and no accessible extension method 'UseEntityFrameworkCorePersistence' accepting a first argument of type 'IModule' could be found (are you missing a using directive or an assembly reference?)
And here are my assembly references and implementation
using Elsa;
using Elsa.Server.Api;
using Elsa.Persistence.EntityFramework.SqlServer;
using Elsa.Persistence.EntityFramework.Core.Extensions;
using Microsoft.EntityFrameworkCore;
private void ConfigureElsa(IServiceCollection services)
{
services
.AddElsa(elsa => elsa
.UseEntityFrameworkCorePersistence(ef =>
ef.UseSqlServer(_appConfiguration.GetConnectionString("Default")))
.AddConsoleActivities()
.AddHttpActivities(options => _appConfiguration.GetSection("Elsa:Server").Bind(options))
.AddQuartzTemporalActivities()
.AddJavaScriptActivities()
.AddWorkflow<Startup>());
// Elsa API endpoints.
services.AddElsaApiEndpoints();
services.Configure<ApiVersioningOptions>(options => { options.UseApiBehavior = false; });
services.Configure<RouteOptions>(options => { options.LowercaseUrls = false; });
// For Elsa Dashboard.
services.AddRazorPages();
// Remove ABP filter and add Elsa special filter
services.PostConfigure<MvcOptions>(ReplaceResultFilter);
}
Can I be sure that the implementation from the blog is not up to date? Does it still work for Elsa v3?
Hi, I'm facing an issue while integrating Elsa following the blog tutorial https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Core-Mvc-Elsa-Integration Issue : .UseEntityFrameworkPersistence and .UseAutoMapper are not being resolved even though I installed all the needed nuggets.
I've looked around but still can't find the reason.
Would Appreciate any help
Hello there, I'm trying to implement a Dropzone UI but I keep seeing this error on my console about DropZone not being defined Here is my jquery code!
I would appreciate it if anyone could help, please.
$(document).ready(function () { Dropzone.autoDiscover = false; $("#kt_dropzonejs_example_1").dropzone({ url: "/App/Lists/UploadDocument/", uploadMultiple: false, paramName: "file", parallelUploads: 1, maxFiles: 1, headers: { "X-XSRF-TOKEN": abp.security.antiForgery.getToken() }, success: function (file, response) { $('#form').append(''); } }); });
Nice! Thank you