c# - [Authorize] 属性在 .Net Core 中从哪里获取登录 URL?
问题描述
当我对我的任何操作使用 Authorize 属性时,它会将我重定向到我的登录视图。我不记得在任何地方保存了登录 url,我在 .Net 4.x 中读到过,登录 url 保存在 .config 中。我们在 .Net 核心中没有任何 web.config,我也没有在 appSettings.json 中设置它。
Authorize 属性从哪里获取登录 URL?它与 UseAuthentication() 中间件有什么关系吗?我正在使用使用 Identity 的内置身份验证功能。
谢谢你。
解决方案
推荐阅读
- python - 在字典中添加数组值
- excel - Excel VBA 代码过滤特定列并从其他列中删除数据
- python - 使用 Python OpenCV 在模糊对象周围寻找紧密轮廓
- linux - 在 shell 脚本中存储 plsql 查询的输出
- android-studio - 如何停止 Android Studio 3.6 生成新片段
- python - subprocess.call() 给出“系统找不到指定的路径。” 当文件存在并且可以真正运行时
- r - 在 R 中格式化电子表格时出现问题,如何使用 R 读取和写入表?
- python - 比较四个字典,它们的键相同但每个字典在 python 中都有不同的值
- java - 中序遍历是否可能与后序遍历相同?
- javascript - 在确认 Javascript 中单击“取消”按钮时页面仍会重新加载