--- End of inner exception stack trace --- at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync() at IdentityServer4.Hosting.FederatedSignOut.AuthenticationRequestHandlerWrapper.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<
context.Services.AddAuthentication()
.AddJwtBearer(options =>
{
options.Authority = configuration["AuthServer:Authority"];
options.RequireHttpsMetadata = Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"]);
options.Audience = "ProjectName";
options.BackchannelHttpHandler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback =
HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
};
})
.AddOpenIdConnect("xxx", "xxx", options =>
{
options.SignInScheme = IdentityServerConstants.ExternalCookieAuthenticationScheme;
options.SignOutScheme = IdentityServerConstants.SignoutScheme;
options.Authority = "https://xxx/";
options.CallbackPath = "/";
options.ClientSecret = configuration["MyIdAuthServer:ClientSecret"];
options.ClientId = configuration["MyIdAuthServer:ClientId"];
options.ResponseType = OpenIdConnectResponseType.Code;
options.BackchannelHttpHandler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback =
HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
};
});
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Project.HttpApi.Host": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:44361",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
dotnet watch --project xxx run -c Debug --launch-profile=Project.HttpApi.Host
This exception don't affect normal use.
when I visit https://localhost:44361/home
or https://localhost:44361/swagger
, the program don't throw this exception msg, so I guess this question is because I add OpenId authentication
, I think set program default application URL to https://localhost:44361/home
or https://localhost:44361/swagger
,this question can be solved, but after I add "launchUrl": "swagger"
to launchSetting.json
file, it don't work.
PS: when I remove options.CallbackPath = "/";
of OpenId authentication
, this exception msg is don't throw too, but I can't remove this setting, because if I do that, OpenId authentication
can't work.
So can you help me? thanks a lot!
I think I know the use of callback option in integration OIDC authentication, It's solved, thanks a lot.
hi
Please check the logs of the backend.
Are you set the Redis?
Hi, We don't use Redis, In development the backend logs don't has exception.
Please share the logs when the request is slowly.
Sorry, I can't provide the log now, when I run into the question, I'll reopen and paste the log.
hi @ldacnfinit
https://docs.abp.io/en/commercial/latest/modules/account/impersonation
I find Login in with this user
button is missing because the selected user is current login user. So It's solved. Thanks!
For can't get local storage access token, the ng website is can't be authorized.
Use third-party oAuth2, request /connect/token to get access token etc. information.
I use sessionStorage
instead of localStorage
to set item, and then this problem is solved, so I close this issue.
index.js:561 [webpack-dev-server] ERROR projects/file-management/src/lib/components/file-management-directory-tree/file-management-directory-tree.component.html:4:9 - error NG8007: The property and event halves of the two-way binding 'nodes' are not bound to the same target. Find more at https://angular.io/guide/two-way-binding#how-two-way-binding-works
4 [(nodes)]="directories" ~~~~~
node_modules/@abp/ng.components/tree/lib/components/tree.component.d.ts:10:22 10 export declare class TreeComponent { ~~~~~~~~~~~~~ The property half of the binding is to the 'TreeComponent' component. projects/file-management/src/lib/components/file-management-directory-tree/file-management-directory-tree.component.ts:1:51 1 import { SubscriptionService, TreeNode } from '@abp/ng.core'; ~~~~~~~~ The event half of the binding is to a native event called 'nodes' on the <abp-tree> DOM element.
Are you missing an output declaration called 'nodesChange'? projects/file-management/src/lib/components/file-management-directory-tree/file-management-directory-tree.component.ts:22:16 22 templateUrl: './file-management-directory-tree.component.html', ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component FileManagementDirectoryTreeComponent.
logger @ index.js:561 (anonymous) @ index.js:731 error @ index.js:180 errors @ index.js:246 (anonymous) @ socket.js:57 client.onmessage @ WebSocketClient.js:50 index.js:561 [webpack-dev-server] ERROR projects/file-management/src/lib/components/file-management-directory-tree/file-management-directory-tree.component.html:7:26 - error TS2345: Argument of type 'DropEvent' is not assignable to parameter of type '{ dragNode: NzTreeNode; node: NzTreeNode; }'. Property 'dragNode' is optional in type 'DropEvent' but required in type '{ dragNode: NzTreeNode; node: NzTreeNode; }'.
7 (dropOver)="onDrop($event)" ~~~~~~
projects/file-management/src/lib/components/file-management-directory-tree/file-management-directory-tree.component.ts:22:16 22 templateUrl: './file-management-directory-tree.component.html', ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component FileManagementDirectoryTreeComponent.
{
path: 'file-management',
loadChildren: () =>
import('../../projects/file-management/src/lib/file-management.module').then(m =>
m.FileManagementModule.forLazy()
),
},
yarn
in the projects/file-management
folderI have read some article about this topic in docs.api.io, but I still don't know what should I do, pls help me, thank you in advance!