We are trying to get Graph integrated into our version 12 ABP ASP Net Zero (.Net Core MVC)
We have AD working fine after following method 2 of the following: https://community.abp.io/posts/how-to-use-the-azure-active-directory-authentication-for-mvc-razor-page-applications-4603b9cf?_ga=2.167438713.612361716.1679501585-1726878413.1679501585
Our Configure method in AuthConfigurer looks like so:
However, when we call the graphclient, for example:
We get the following error:
---> System.InvalidOperationException: IDW10503: Cannot determine the cloud Instance. The provided authentication scheme was ''. Microsoft.Identity.Web inferred 'Identity.Application' as the authentication scheme. Available authentication schemes are 'Identity.Application,Identity.External,Identity.TwoFactorRememberMe,Identity.TwoFactorUserId,idsrv,idsrv.external,Cookies,OpenIdConnect,Bearer,IdentityBearerIdentityServerAuthenticationJwt,IdentityBearerIdentityServerAuthenticationIntrospection,IdentityBearer'. See https://aka.ms/id-web/authSchemes.
at Microsoft.Identity.Web.TokenAcquisitionAspnetCoreHost.GetOptions(String authenticationScheme, String& effectiveAuthenticationScheme)
at Microsoft.Identity.Web.TokenAcquisition.GetAuthenticationResultForUserAsync(IEnumerable1 scopes, String authenticationScheme, String tenantId, String userFlow, ClaimsPrincipal user, TokenAcquisitionOptions tokenAcquisitionOptions) at Microsoft.Identity.Web.DefaultAuthorizationHeaderProvider.CreateAuthorizationHeaderForUserAsync(IEnumerable
1 scopes, AuthorizationHeaderProviderOptions downstreamApiOptions, ClaimsPrincipal claimsPrincipal, CancellationToken cancellationToken)
The AD part is working fine and a user can create a account and login with their Microsoft account. It is just the Graph part that is not working. Anyone any ideas? Thanks
ASP.NET CORE MVC & JQuery v12.0.1 .NET 7
Edition feature settings are not saved when setting the value back to it's default value.
Steps to reproduce:
Having to remove the default values from AppFeatureProvider to get around this which is far from ideal. Especially when evaluating a feature setting that hasnt had a value saved against it yet.
I can debug it as far as the EditionManager:
public virtual Task SetFeatureValueAsync(int editionId, string featureName, string value)
{
return _featureValueStore.SetEditionFeatureValueAsync(editionId, featureName, value);
}
But then lose the trail into ABP Source code.
Thank you
We are on ABP 7.3.0 running Zero version 10.4.0 trying to get Stripe integration working. All going well up to "Please Wait Receiving payment result. Please Wait" where it then gets stuck.
The errors occur when moving through the stripe payment screens. You will see we have tried both:
http://default.localhost:44302/api/payment/stripe/webhook and
http://localhost:44302/api/payment/stripe/webhook
as the listening api
We have added the WebhookSecret to theapplication.config.
Has anyone any ideas what we could be missing?
One thing we noticed is we cannot see the api/payment/stripe/webhook route in swagger:
Should we be able to?
Thanks
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
<br> Hi,
We are experiencing an issue with the Recent Notifications box whereby clicking "Set all as read" does not set notifications to read.
In this example, there are 47 notifications as you can see:-
The code in question is contained in the following folder/file: "Web.Mvc\wwwroot\view-resources\Areas\App\Views\Layout\_Header.js". When the code is debugged and "Set all as read" is clicked, the execution stops at the breakpoint here:-
Stepping the execution on using F11, the code from line 142 onwards is never executed and consequently the notifications are never set to read.
We haven't modified the original code.
Could you advise please?
Many thanks,
Roger
We are using the UserFriendlyException to notify users that they have reached the user limit for their edition:
throw new UserFriendlyException(L("MaximumUserCount_Error_Message"), L("MaximumUserCount_Error_Detail", maxUserCount));
This results in the following:
We would like to add a second button next to OK that takes the user to the Upgrade page. How can we customise this functionality?
Many thanks
V10.4.0 - MVC - NET CORE
node v16.14.2 yarn v.2.4.0 npm v8.5.5
running npm run create-bundles generates the following error:
C:\Repos\Congresso\src\Congresso.Web.Mvc>npm run create-bundles
abpzerotemplate@10.4.0 create-bundles yarn && gulp buildDev
npm ERR! code ENOENT npm ERR! syscall spawn bash npm ERR! path C:\Repos\Congresso\src\Congresso.Web.Mvc npm ERR! errno -4058 npm ERR! enoent spawn bash ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\JRadu\AppData\Local\npm-cache_logs\2022-04-11T15_07_50_497Z-debug-0.log
LOG:
0 verbose cli [ 0 verbose cli 'C:\Program Files\nodejs\node.exe', 0 verbose cli 'C:\Users\\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js', 0 verbose cli 'run', 0 verbose cli 'create-bundles' 0 verbose cli ] 1 info using npm@8.5.5 2 info using node@v16.14.2 3 timing npm:load:whichnode Completed in 1ms 4 timing config:load:defaults Completed in 2ms 5 timing config:load:file:C:\Users*\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 2ms 6 timing config:load:builtin Completed in 2ms 7 timing config:load:cli Completed in 1ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:C:\Repos\Congresso\src\Congresso.Web.Mvc.npmrc Completed in 0ms 10 timing config:load:project Completed in 2ms 11 timing config:load:file:C:\Users*.npmrc Completed in 1ms 12 timing config:load:user Completed in 1ms 13 timing config:load:file:C:\Users*\AppData\Roaming\npm\etc\npmrc Completed in 0ms 14 timing config:load:global Completed in 1ms 15 timing config:load:validate Completed in 0ms 16 timing config:load:credentials Completed in 1ms 17 timing config:load:setEnvs Completed in 1ms 18 timing config:load Completed in 12ms 19 timing npm:load:configload Completed in 12ms 20 timing npm:load:setTitle Completed in 0ms 21 timing config:load:flatten Completed in 2ms 22 timing npm:load:display Completed in 4ms 23 verbose logfile C:\Users*\AppData\Local\npm-cache_logs\2022-04-11T15_07_50_497Z-debug-0.log 24 timing npm:load:logFile Completed in 51ms 25 timing npm:load:timers Completed in 0ms 26 timing npm:load:configScope Completed in 1ms 27 timing npm:load Completed in 70ms 28 silly logfile start cleaning logs, removing 2 files 29 timing command:run Completed in 13ms 30 verbose stack Error: spawn bash ENOENT 30 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19) 30 verbose stack at onErrorNT (node:internal/child_process:478:16) 30 verbose stack at processTicksAndRejections (node:internal/process/task_queues:83:21) 31 verbose pkgid abpzerotemplate@10.4.0 32 verbose cwd C:\Repos\Congresso\src\Congresso.Web.Mvc 33 verbose Windows_NT 10.0.19042 34 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "create-bundles" 35 verbose node v16.14.2 36 verbose npm v8.5.5 37 error code ENOENT 38 error syscall spawn bash 39 error path C:\Repos\Congresso\src\Congresso.Web.Mvc 40 error errno -4058 41 error enoent spawn bash ENOENT 42 error enoent This is related to npm not being able to find a file. 42 error enoent 43 verbose exit -4058 44 timing npm Completed in 463ms 45 verbose code -4058 46 error A complete log of this run can be found in: 46 error C:\Users***\AppData\Local\npm-cache_logs\2022-04-11T15_07_50_497Z-debug-0.log
The mvc bundles.json:
https://pastebin.com/nngCz8s7
Hi,
I am having trouble getting the Xamarin Signalr hub connection working. Please find all the details below:
SplashActivity.cs StartApplication:
DebugServerIpAddresses.Current = "192.168.0.22";
App.xaml.cs OnStart:
HubConnection = new HubConnectionBuilder() .WithUrl("http://" + DebugServerIpAddresses.Current + ":44301/signalr-document-conversion", (opts) => { opts.HttpMessageHandlerFactory = (message) => { if (message is HttpClientHandler clientHandler) // bypass SSL certificate clientHandler.ServerCertificateCustomValidationCallback += (sender, certificate, chain, sslPolicyErrors) => { return true; }; return message; };
}).ConfigureLogging(logging => { logging.SetMinimumLevel(LogLevel.Debug); logging.AddConsole(); logging.AddDebug(); }).Build();
MVC Startup:
app.UseEndpoints(endpoints =>
{
endpoints.MapHub<AbpCommonHub>("/signalr");
endpoints.MapHub<ChatHub>("/signalr-chat");
endpoints.MapHub<AgendaHub>("/signalr-agenda");
endpoints.MapHub<MinuteHub>("/signalr-minute");
endpoints.MapHub<DocumentHub>("/signalr-document-conversion");
endpoints.MapControllerRoute("defaultWithArea", "{area}/{controller=Home}/{action=Index}/{id?}");
endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");
if (bool.Parse(_appConfiguration["HealthChecks:HealthChecksEnabled"]))
{
endpoints.MapHealthChecks("/health", new HealthCheckOptions()
{
Predicate = _ => true,
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
});
}
app.ApplicationServices.GetRequiredService<IAbpAspNetCoreConfiguration>().EndpointConfiguration.ConfigureAllEndpoints(endpoints);
});
Exception:
09-14 15:12:00.069 I/mono-stdout( 3758): [40m[37mdbug[39m[22m[49m: Microsoft.AspNetCore.SignalR.Client.HubConnection[40] 09-14 15:12:00.069 I/mono-stdout( 3758): Registering handler for client method 'DocumentReordered'. 09-14 15:12:00.072 I/mono-stdout( 3758): [40m[37mdbug[39m[22m[49m: Microsoft.AspNetCore.SignalR.Client.HubConnection[40] 09-14 15:12:00.072 I/mono-stdout( 3758): Registering handler for client method 'DocumentStatusChanged'. 09-14 15:12:00.076 I/mono-stdout( 3758): [40m[37mdbug[39m[22m[49m: Microsoft.AspNetCore.SignalR.Client.HubConnection[41] 09-14 15:12:00.076 I/mono-stdout( 3758): Starting HubConnection. 09-14 15:12:00.081 I/mono-stdout( 3758): [40m[37mdbug[39m[22m[49m: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[1] 09-14 15:12:00.081 I/mono-stdout( 3758): Starting HttpConnection. 09-14 15:12:00.084 I/mono-stdout( 3758): [40m[37mdbug[39m[22m[49m: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[8] 09-14 15:12:00.084 I/mono-stdout( 3758): Establishing connection with server at 'http://192.168.0.22:44301/signalr-document-conversion'. 09-14 15:12:00.094 V/ViewRootImpl( 3758): The specified message queue synchronization barrier token has not been posted or has already been removed 09-14 15:12:00.108 D/DecorView( 3758): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@7c425ad[MainActivity] 09-14 15:12:00.123 D/OnePlusJankManager( 3758): Chor uploadMDM JANK_TYPE_ONCE mViewTitle = com.Congresso.Mobile/crc64fd27f5768c743714.MainActivity--- jank level = 2 09-14 15:12:00.129 I/mono-stdout( 3758): [41m[30mfail[39m[22m[49m: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[10] 09-14 15:12:00.129 I/mono-stdout( 3758): Failed to start connection. Error getting negotiation response from 'http://192.168.0.22:44301/signalr-document-conversion'. 09-14 15:12:00.129 I/mono-stdout( 3758): System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.IO.IOException: The server returned an invalid or unrecognized response. 09-14 15:12:00.129 I/mono-stdout( 3758): at System.Net.Http.HttpConnection.FillAsync () [0x0016e] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:1360 09-14 15:12:00.129 I/mono-stdout( 3758): at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync (System.Boolean foldedHeadersAllowed) [0x00259] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:1307 09-14 15:12:00.129 I/mono-stdout( 3758): at System.Threading.Tasks.ValueTask1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.HttpConnection.SendAsyncCore (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00d54] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:568 09-14 15:12:00.130 I/mono-stdout( 3758): --- End of inner exception stack trace --- 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.HttpConnection.SendAsyncCore (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x012d9] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:743 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync (System.Net.Http.HttpConnection connection, System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x000e6] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:330 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00101] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:296 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00070] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:32 09-14 15:12:00.130 I/mono-stdout( 3758): at Microsoft.AspNetCore.Http.Connections.Client.Internal.AccessTokenHttpMessageHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ff] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 09-14 15:12:00.130 I/mono-stdout( 3758): at Microsoft.AspNetCore.Http.Connections.Client.Internal.LoggingHttpMessageHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00095] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 09-14 15:12:00.130 I/mono-stdout( 3758): at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:531 09-14 15:12:00.130 I/mono-stdout( 3758): at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.NegotiateAsync (System.Uri url, System.Net.Http.HttpClient httpClient, Microsoft.Extensions.Logging.ILogger logger, System.Threading.CancellationToken cancellationToken) [0x0014a] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 09-14 15:12:00.142 I/mono-stdout( 3758): [40m[37mdbug[39m[22m[49m: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[5] 09-14 15:12:00.142 I/mono-stdout( 3758): Skipping dispose, connection is already disposed. 09-14 15:12:00.162 I/mono-stdout( 3758): [40m[37mdbug[39m[22m[49m: Microsoft.AspNetCore.Http.Connections.Client.HttpConnection[5] 09-14 15:12:00.162 I/mono-stdout( 3758): Skipping dispose, connection is already disposed.