Update identity configuration and CORS settings
Revised appsettings.json to include a new "FastEndpoints" configuration block and updated CORS allowed origins. Modified IdentityFeature to bind IdentityTokenOptions directly to configuration for better integration.
This commit is contained in:
parent
aa2c9e7909
commit
c99a594eb3
|
|
@ -57,7 +57,7 @@ public class IdentityFeature : IFastEndpointsShellFeature
|
|||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
// Configure options - Note: SigningKey must be configured by the application for security
|
||||
services.Configure<IdentityTokenOptions>(_ => { });
|
||||
services.AddOptions<IdentityTokenOptions>().BindConfiguration("Identity");
|
||||
services.Configure<ApiKeyOptions>(ApiKeyDefaults.AuthenticationScheme, options =>
|
||||
{
|
||||
options.Realm = "Elsa Workflows";
|
||||
|
|
|
|||
Loading…
Reference in a new issue