The exact solution to your question may have been answered before, and please use the search on the homepage.
If you're creating a bug/problem report, please include the followings:
- ABP Framework version: v7.0.2
- UI type: Angular / MVC
- DB provider: EF Core
- Tiered (MVC) or Auth Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:"
"We have an architecture similar to the one shown in the image, where the login processes take place in the authserver project. We have developed some code to override or create custom login processes in the authentication server. However, we couldn't find a designated place in the MVC project where we can change the login process. We are wondering if ABP handles this through an automated module. Can you assist us with this scenario?
24 Answer(s)
-
0
hi
The oauth2 handle by OpenIddict:
https://github.com/abpframework/abp/tree/dev/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
The oauth2 handle by OpenIddict:
https://github.com/abpframework/abp/tree/dev/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers
hi maliming
I tried to implement such a custom login, but I don't know how to link it to the login Razor Page you mentioned in the first image?
how can I do that?Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
We use
pageto handle the login request instead ofcontroller.Volo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtmlVolo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml.csMarkdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
We use
pageto handle the login request instead ofcontroller.Volo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtmlVolo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml.csI actually use the classes you mentioned, but I still can't debug myaccountcontroller.cs that it produces while logging in.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
The application will not call the
myaccountcontrollerduring login.why?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Because the
LoginModelhandles the login request.Volo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml Volo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml.csMarkdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Because the
LoginModelhandles the login request.Volo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml Volo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml.cswell I will never use myaccountcontroller then when logging in.So when will my login method be used or can I use my own login method while logging in?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
You have to override the code from
Volo.Abp.Account.Public.Web.Pages.Account.LoginModelVolo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml Volo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml.csMarkdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
You have to override the code from
Volo.Abp.Account.Public.Web.Pages.Account.LoginModelVolo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml Volo.Abp.Account.Pro.Public.Web/Pages/Account/Login.cshtml.csIs there a sample project or a document related to this topic?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
https://support.abp.io/QA/Questions/160/How-to-customize-an-ABP-project
https://community.abp.io/posts/how-to-customize-the-login-page-for-mvc-razor-page-applications-9a40f3cd https://gist.github.com/ebicoglu/ce0f0425bab806d0ee1a87d0073af96b
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
https://support.abp.io/QA/Questions/160/How-to-customize-an-ABP-project
https://community.abp.io/posts/how-to-customize-the-login-page-for-mvc-razor-page-applications-9a40f3cd https://gist.github.com/ebicoglu/ce0f0425bab806d0ee1a87d0073af96b
I'm doing such a development, I'm getting an error in references, what do you think?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
You can download this project to test.
https://github.com/abpframework/abp-samples/tree/master/Authentication-Customization https://github.com/abpframework/abp-samples/tree/master/Authentication-Customization/src/Acme.BookStore.Web/Pages/Account
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
You can download this project to test.
https://github.com/abpframework/abp-samples/tree/master/Authentication-Customization https://github.com/abpframework/abp-samples/tree/master/Authentication-Customization/src/Acme.BookStore.Web/Pages/Account
I looked at the sample project, it looks exactly the same, but I still get this errorMarkdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
-
0Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
-
0Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
-
0Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
-
0Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
-
0
hi
You can download the
Account.Promodule to check the code. we have implemented the 2FA login on the commercial side.https://docs.abp.io/en/commercial/latest/modules/account#two-factor-authentication https://support.abp.io/QA/Questions/632/How-can-I-download-the-source-code-of-the-framework-Angular-packages-theme-and-pro-modules
abp get-source Volo.Account.ProMarkdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)












