有没有办法在 ASP.NET Web 表单页面应用程序中使用 Auth0?
我试图在 Web 表单页面 (aspx) 应用程序和链接 https: //auth0.com/docs/quickstart/webapp/aspnet 似乎已被删除,因为它重定向到常规 Web 应用程序的其他快速入门。我尝试使用 ASP.NET (OWIN) 即 MVC 文档,但这似乎不起作用。所以我的问题是,是否仍然可以在传统的 Web 表单应用程序中实现 Auth0?
I was trying to implement Auth0 in the web forms page (aspx) application and the documentation on link https://auth0.com/docs/quickstart/webapp/aspnet seems to be deleted as it redirects to other quickstarts for Regular Web Apps. I tried using ASP.NET (OWIN) i.e. MVC documentation but that doesn't seem to be working. So my question is that is it still possible to implement Auth0 in traditional webforms apps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,你可以,但你必须借助 asp.net MVC。
Asp.NET MVC 构建在 ASP.NET 之上,因此我们可以轻松集成 Webform 应用程序并利用 MVC 控制器和路由配置类的优势。
为此,您需要包含以下软件包。
在根级别创建两个文件夹,
文件夹的文件内容应如下所示:
每当会话结束时,您可以通过编写以下代码从任何 .aspx.cs 页面重定向到 Home/index:
Yes, you can but you have to take the help of asp.net MVC.
Asp.NET MVC is built on top of ASP.NET so, we can easily integrate webform applications and take the benfit of MVC controllers and route config classes.
For this, you need to include the below packages.
Create two folders at root level,
The file content of the folder should be as follow:
Whenever session is out, you can simply redirect to Home/index from any .aspx.cs page by writing below code: