I can access the public api, but How to get access token to access protected api?
I create a app-pro template project. now i need access the api at HttpApi.Host by other language (python,Golang etc ...), Could tell me how to do it? or where the documents?
OK, Thanks~
I use the LeptonX theme(MVC UI), Could tell me where to find the document for components like abp-input
, abp-button
,abp-card
,etc ...?
@page
@using System.Globalization
@using Microsoft.AspNetCore.Mvc.Localization
@using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Modal
@using XTC.License.Localization
@using XTC.License.Web.Pages.License.Space
@using XTC.License.Space;
@inject IHtmlLocalizer<LicenseResource> L
@model EditModalModel
@{
Layout = null;
}
<form data-ajaxForm="true" asp-page="/License/Space/EditModal" autocomplete="off">
<abp-modal id="SpaceEditModal">
<abp-modal-header title="@L["Update"].Value"></abp-modal-header>
<abp-modal-body>
<abp-input asp-for="Id" />
<abp-input asp-for="Space.ConcurrencyStamp" hidden="true" suppress-label="true"/>
<abp-input asp-for="Space.Name" readonly="true" />
<!-- Other properties
<abp-input asp-for="Space.OtherProperty" />
-->
</abp-modal-body>
<abp-modal-footer buttons="@(AbpModalButtons.Cancel|AbpModalButtons.Save)">
</abp-modal-footer>
</abp-modal>
</form>
I saw the https://x.leptontheme.com/side-menu/components/bootstrap/card, https://abp.io/docs/latest/ui-themes/lepton-x/mvc, but nothing found about those components. I want to know how many components about abp-*
and how to use them.
I run the project first time need a long time like this:
[16:11:15 INF] Starting web host.
[16:13:13 INF] Loaded ABP modules:
It actually took over two minutes !!!
And i deploy the project to my product environment, it took over one minutes too when long time nobody access, Counld tell me how to resolve it?
I resolved it , thanks very much~
I get it, Thanks ~
Yes, Https with domain name is works fine at internet,such as https://xxx.mydomain.com, But my project need work on a LAN IP, If use HTTPS such as https://192.168.11.11:44300? Is there a way to generate a self-signed SSL certificate and the browser trusts it not to prompt a warning?
Is this property must same as address of listening?
Check the docs before asking a question: https://abp.io/docs/latest
Check the samples to see the basic tasks: https://abp.io/docs/latest/samples
The exact solution to your question may have been answered before, and please first use the search on the homepage.
Provide us with the following info:
🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration
button.
I created a app-pro template project. I run the AuthServer at http://192.168.1.152:8000, run the HttpApi.Host at http://192.168.1.152:8001 ,run the Web at http://192.168.1.152:8002.
When i access the Web(http://192.168.1.152:8002), it redirect the Account/Login successfully. I enter the username and passwor, login success. but redirect back the Web(http://192.168.1.152:8002), got a internal error.
this is log:
[13:47:07 INF] Request finished HTTP/1.1 GET http://192.168.1.152:8002/ - 302 0 null 767.8895ms
[13:47:07 INF] Request starting HTTP/1.1 GET http://192.168.1.152:8002/Account/Login - null null
[13:47:07 INF] Executing endpoint 'XTC.BaaSo.Web.Controllers.AccountController.LoginAsync (XTC.BaaSo.Web)'
[13:47:07 INF] Route matched with {action = "Login", controller = "Account", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] LoginAsync(System.String, System.String) on controller XTC.BaaSo.Web.Controllers.AccountController (XTC.BaaSo.Web).
[13:47:07 INF] Executing ChallengeResult with authentication schemes (["oidc"]).
[13:47:07 INF] AuthenticationScheme: oidc was challenged.
[13:47:07 INF] Executed action XTC.BaaSo.Web.Controllers.AccountController.LoginAsync (XTC.BaaSo.Web) in 179.7605ms
[13:47:07 INF] Executed endpoint 'XTC.BaaSo.Web.Controllers.AccountController.LoginAsync (XTC.BaaSo.Web)'
[13:47:07 INF] Request finished HTTP/1.1 GET http://192.168.1.152:8002/Account/Login - 302 0 null 193.8017ms
[13:47:08 INF] Request starting HTTP/1.1 POST http://192.168.1.152:8002/signin-oidc - application/x-www-form-urlencoded 1642
[13:47:08 WRN] '.AspNetCore.Correlation.IVW8OqkG0dA02UgkNaWBnV7tJweAWBYj_N8msRi4-8U' cookie not found.
[13:47:08 INF] Error from RemoteAuthentication: Correlation failed..
[13:47:08 ERR] An unhandled exception has occurred while executing the request.
Microsoft.AspNetCore.Authentication.AuthenticationFailureException: An error was encountered while handling the remote login.
---> Microsoft.AspNetCore.Authentication.AuthenticationFailureException: Correlation failed.
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>c__DisplayClass2_0.<<CreateMiddleware>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
[13:47:08 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)'
[13:47:08 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared).
[13:47:08 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
[13:47:08 INF] Start processing HTTP request GET http://192.168.1.152:8001/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0
[13:47:08 INF] Sending HTTP request GET http://192.168.1.152:8001/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0
[13:47:08 INF] Received HTTP response headers after 35.473ms - 200
[13:47:08 INF] End processing HTTP request after 35.7513ms - 200
[13:47:08 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
[13:47:08 INF] Start processing HTTP request GET http://192.168.1.152:8001/api/abp/application-localization?CultureName=zh-Hans&OnlyDynamics=True&api-version=1.0
[13:47:08 INF] Sending HTTP request GET http://192.168.1.152:8001/api/abp/application-localization?CultureName=zh-Hans&OnlyDynamics=True&api-version=1.0
By the way, if AuthServer binds to https://localhost:44300 , HttpApi.Hot binds to https://localhost:44301, and Web binds to the https://localhost:44302, everything is ok .