Customize Login Page design for Authentication type : Individual User account ASP.NET core 2.1, MVC, c#(自定义身份验证类型的登录页面设计:个人用户帐户 ASP.NET core 2.1、MVC、c#)
问题描述
我正在尝试为我的 Web 应用程序实现 OAuth2.0.我在
我该怎么做?
编辑
要低评论,所以我会发布作为答案,请按照此 答案.
对我来说,我只是右键单击项目,选择 Add ->新建 Scaffold Item,在左侧窗格中的新对话框中选择 Identity,然后按照提示进行操作.
login.cshtml 页面是在 Areas/Identity/Pages/Account 目录中创建的.
I'm trying to implement OAuth2.0 for my web application. I have done that following this link.
I have registered with 2 external providers Microsoft and Google. I have added Authentication in startup.cs file as well.
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?
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.
The login.cshtml pages were created in the Areas/Identity/Pages/Account directory.
这篇关于自定义身份验证类型的登录页面设计:个人用户帐户 ASP.NET core 2.1、MVC、c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:自定义身份验证类型的登录页面设计:个人用户帐户 ASP.NET core 2.1、MVC、c#
基础教程推荐
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
