自定义身份验证类型的登录页面设计:单个用户帐户ASP.NET core 2.1,MVC,c# [英] Customize Login Page design for Authentication type : Individual User account ASP.NET core 2.1, MVC, c#

查看:252
本文介绍了自定义身份验证类型的登录页面设计:单个用户帐户ASP.NET core 2.1,MVC,c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为我的Web应用程序实现OAuth2.0.我已经按照链接.

I'm trying to implement OAuth2.0 for my web application. I have done that following this link.

我已经向2个外部提供商Microsoft和Google注册.我也在startup.cs文件中添加了身份验证.

I have registered with 2 external providers Microsoft and google. I have added Authentication in startup.cs file as well.

因此,当我运行该应用程序时,单击右上角的登录"按钮,将显示一个登录"页面.显示的URL为https://localhost:44325/Identity/Account/Login.

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.

但是我无法在解决方案中的任何地方找到此页面.我想修改此页面的设计,并希望在打开应用程序后立即将其作为我的第一页.

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. I have searched for a couple of hours now and couldn't find anything.

我们非常感谢您的帮助.在此先感谢您.

Any help is highly appreciated.Many thanks in advance.

编辑

推荐答案

要发表评论,以便我将其发布为答案,请按照此.

To low to comment so I'll post as an answer, follow the instructions at this answer.

对我来说,我右键单击项目,选择Add -> New Scaffold Item,在新对话框的左窗格中选择Identity,然后按照提示进行操作.

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.

login.cshtml页面是在Areas/Identity/Pages/Account目录中创建的.

The login.cshtml pages were created in the Areas/Identity/Pages/Account directory.

这篇关于自定义身份验证类型的登录页面设计:单个用户帐户ASP.NET core 2.1,MVC,c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆