Asp .Net Core 3中Challenge的确切含义是什么? [英] What exactly does Challenge mean in Asp .Net Core 3?
本文介绍了Asp .Net Core 3中Challenge的确切含义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道您可以在ASP .NET Core中进行身份验证和授权.因此,例如,您可以使用Authorize属性拒绝对某些资源的访问.
I know that you can have authentication and authorization in asp .net core. So for example you can deny access to some resources using the Authorize attribute.
例如,如果用户尝试访问不可访问的资源,那么他可能会被重定向到登录页面.
So for example if an user tries to access a resource that is not accessible then he might get redirected to the login page.
但是我看到在asp .net核心中有一个称为Challenge的概念.我不知道它适合所有这些情况.据我了解,如果用户未登录,则可以将其重定向到可以登录的页面.
But I saw that there is a concept called Challenge in asp .net core. I don't know where it fits in all of this. From what I understood, if the user is not logged in it can redirect him to a page where he can log in.
推荐答案
查看全文