diff --git a/src/VirtoCommerce.Platform.Web/Startup.cs b/src/VirtoCommerce.Platform.Web/Startup.cs index 56e69a2cbb..ceaa983f5c 100644 --- a/src/VirtoCommerce.Platform.Web/Startup.cs +++ b/src/VirtoCommerce.Platform.Web/Startup.cs @@ -353,7 +353,7 @@ public void ConfigureServices(IServiceCollection services) options.AllowPasswordFlow() .AllowRefreshTokenFlow() .AllowClientCredentialsFlow() - .AllowCustomFlow("impersonate"); + .AllowCustomFlow(PlatformConstants.Security.GrantTypes.Impersonate); options.SetRefreshTokenLifetime(authorizationOptions?.RefreshTokenLifeTime); options.SetAccessTokenLifetime(authorizationOptions?.AccessTokenLifeTime);