Silverlight 覆盖身份验证请求

发布于 2024-11-10 06:46:06 字数 169 浏览 7 评论 0原文

我想在我的 silveright 应用程序中提供硬编码的用户名和密码,这样即使我的软件的笨用户做了一些笨事,比如删除所有用户,仍然有一种方法可以登录到该应用程序。所以我正在寻找某种方法来拦截身份验证请求。 AuthenticationBase 中是否有一些方法可以被重写来执行此操作(我看不到任何明显的东西)?或者其他方式?

I want to provide a hard coded user name and password in my silveright app so that even when the halfwit users of my software go and do something halfwitted like deleting all users there is still a way to login to the app. So I am looking for some way to intercept the authentication request. Is there some method in AuthenticationBase that can be overriden to do this (nothing obvious that I could see)? Or some other way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我喜欢麦丽素 2024-11-17 06:46:06

覆盖 AuthenticationBase.ValidateUser。

Override AuthenticationBase.ValidateUser.

独自唱情﹋歌 2024-11-17 06:46:06

在 AuthenticationService Login 方法中,首先检查硬编码的密码,如果失败则执行其他方法。

In the AuthenticationService Login method, check for the hard coded pw first, if that fails do the other method.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文