简体   繁体   English

针对身份验证类型自定义登录页面设计:个人用户帐户 ASP.NET core 2.1、MVC、c#

[英]Customize Login Page design for Authentication type : Individual User account ASP.NET core 2.1, MVC, c#

I'm trying to implement OAuth2.0 for my web application.我正在尝试为我的 Web 应用程序实现 OAuth2.0。 I have done that following this link.我已经按照这个链接做了。

I have registered with 2 external providers Microsoft and Google.我已在 2 个外部提供商 Microsoft 和 Google 上注册。 I have added Authentication in startup.cs file as well.我也在 startup.cs 文件中添加了身份验证。

So when I run the application, click on Login button on top right corner, a Login page is displayed.The URL it is showing is https://localhost:44325/Identity/Account/Login .因此,当我运行应用程序时,单击右上角的登录按钮,会显示登录页面。它显示的 URL 是https://localhost:44325/Identity/Account/Login

But I'm unable to find this page anywhere in my solution.但是我无法在我的解决方案中的任何地方找到这个页面。 I want to modify this page's design and want to make this my first page as soon as I open the application.我想修改此页面的设计,并希望在我打开应用程序后立即将其设为我的第一页。

在此处输入图片说明

How do I do it?我该怎么做?

Edit编辑

在此处输入图片说明

To low to comment so I'll post as an answer, follow the instructions at this answer .为了发表评论,所以我将作为答案发布,请按照此答案中的说明进行操作。

For me I just right-clicked on the project, selected Add -> New Scaffold Item , picked Identity on the new dialog, in the left pane, and followed the prompts.对我来说,我只是右键单击该项目,选择Add -> New Scaffold Item ,在左侧窗格中的新对话框中选择Identity ,然后按照提示进行操作。

The login.cshtml pages were created in the Areas/Identity/Pages/Account directory. login.cshtml页面是在Areas/Identity/Pages/Account目录中创建的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 Angular 个人用户帐户身份验证自定义 ASP.NET Core Web 应用程序的登录页面? - How to customize the login page of ASP.NET Core web application with Angular Individual user account authentication? .Net Core 3.1 MVC 身份验证个人用户帐户和 ASP.NET 核心项目中的脚手架身份 - .Net Core 3.1 MVC Authentication Individual User Accounts and Scaffold Identity in ASP.NET Core projects 从 Twitter API 获取用户的电子邮件以进行外部登录身份验证 ASP.NET MVC C# - Get user's email from Twitter API for External Login Authentication ASP.NET MVC C# C# 和 ASP.NET 核心 6:“会话”中的身份验证和用户详细信息 - C# and ASP.NET Core 6 : authentication and user details in "session" ASP.Net Core MVC登录用户 - ASP.Net Core MVC Login user 带有 ASP.NET 内核 (MVC) 的登录页面 - Login Page with ASP.NET Core (MVC) 如何自定义ASP.NET MVC登录身份验证? - How to customize ASP.NET MVC Login Authentication? 个人用户帐户在ASP.Net MVC中不进行身份验证 - Individual User Accounts to No Authentication in ASP.Net MVC "ASP.NET Core 2.1 - 身份验证 cookie 已删除,但用户仍可以登录而不会被重定向到外部登录" - ASP.NET Core 2.1 - Authentication cookie deleted but the user could still login without being redirected to external sign-in Asp.Net Core 2.1返回的C#SimpleJson和Json - C# SimpleJson with Json returned by Asp.Net Core 2.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM