问题标签 [authlogic]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ruby-on-rails - 使用 Authlogic 进行集成测试?
对于我的生活,我不明白为什么 Authlogic 没有让我在这个集成测试中登录。使用此代码在功能测试中登录我的 Authlogic 没有任何问题。根据 authlogic rdocs ( http://tinyurl.com/mb2fp2 ),模拟登录状态在功能和集成测试中是相同的,所以我很困惑。任何帮助深表感谢!
authlogic - 功能/集成测试中的 Authlogic edit_password_reset_url
我正在尝试实施一些测试来验证 Authlogic 密码重置的行为,如http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/中所述
我正在使用 Authlogic、Shouda、Webrat 和 Factory Girl,这是我的测试:
在测试的最后两行中,我试图确保发出的链接具有正确的 perishable_token,并且打印的 Perishable Token 和发出的链接中的令牌总是不同。
我应该如何测试这种行为?
谢谢,湿婆
ruby-on-rails - 每个帐户具有多个 openid 标识符的 Authlogic openid
您将如何使用 authlogic 允许用户使用多个openid 帐户和可选的密码登录?
ruby-on-rails - How do I impersonate a user with AuthLogic
I need to be able to create a UserSession without having the decrypted password.
How do I go about doing this?
My current workaround is:
In user.rb
In user_session.rb
To login
Is there a nicer way to do this?
ruby-on-rails - Authlogic 访问会话对象中的用户 ID
我想知道是否有人知道我如何使用 Authlogic gem 从 Rails 中的会话对象访问用户 ID?
我有一个清扫器运行以使特定于用户的缓存片段过期:
如何使用 Authlogic 从我的清扫器访问用户 ID 以使片段过期?
ruby-on-rails - 用黄瓜和 webrat 测试 authlogic-open-id 的最佳方法是什么?
我在使用 cucumber 和 webrat 在 rails 应用程序中测试 authlogic-openid 身份验证时遇到了麻烦。按照 Ryan Bates 的出色截屏视频,我能够使用 open-id 插件安装 authlogic。当我使用浏览器登录时,OpenID 可以工作,但到目前为止,我无法使用 cucumber 和 webrat 测试应用程序。
我尝试使用rots作为虚拟的开放 id 服务器。当我在浏览器中尝试它时,这再次起作用,但 webrat 不会正确遵循使用虚拟开放 id 服务器进行身份验证所需的 get/post 重定向。
SO上的这个答案建议覆盖身份验证方法以始终返回成功登录,但这种方法似乎不像集成测试应用程序。
功能测试 authlogic-open-id 的最佳方法是什么?我应该打扰吗?当用户已经登录并假设 OpenID 可以工作时,我应该测试这些操作吗?
ruby-on-rails - 无法在登录表单上放置电子邮件地址字段(Authlogic)
所以我让 Authlogic 在这个user_sessions/new
视图中工作正常:
但是当我改变
至
加载视图时出现此错误:
但当然我的用户表有一个email
字段等。
ruby-on-rails - 如何从 iphone 客户端登录到 authlogic rails 表单
我有一个使用 authlogic 插件用 Rails 编写的服务器端应用程序。我不确定如何从我的 iphone 客户端登录到 rails 应用程序。我想我知道如何在 Obj C 中编写 get/post 代码,但我不确定使用我的 rails 服务器进行身份验证的最佳方法是什么。以下是访问此 URL 时服务器端 HTML 的样子:http://localhost:3000/user_sessions/new : http://pastie.org/596279
ruby - 如何使用 authlogic 对用户进行身份验证?
在我的系统中,用户通过 rails 网站注册。我必须从用 ruby 编写的自定义应用程序服务器对用户进行身份验证。
错误信息:
ruby-on-rails - 测试通过使用“自动测试”但不是使用 Authlogic 的“rake 测试”
我的测试在执行“rake test:functionals”时失败,但使用自动测试始终通过。
有问题的失败测试似乎与使用 rake 时 Authlogic 未正确登录用户有关。
为了便于在测试中登录用户,我有一个测试助手方法,如下所示:
上述方法用于登录用户
我的堆栈是 shoulda/authlogic/acl9/factory_girl/mocha
我怀疑 Authlogic 是问题的原因是失败的测试如下所示: