jjzjj

PreAuthenticatedToken

全部标签

php - 使用 SimplePreAuthenticator 和 PreAuthenticatedToken 时处理临时 token 的最佳方法

我正在使用此处描述的SimpleAuthentication功能:http://symfony.com/doc/2.6/cookbook/security/api_key_authentication.html目的是通过作为查询(获取)参数或header传递的token字符串提供身份验证。这个token,我们称之为TemporaryAccessToken以避免与Sf2token混淆,由Controller生成,通过电子邮件发送给用户(此处未描述)并且应该在有限的时间内可用(专用实体中有一个valid_until\DateTime列)。作为记录,当protected页面(由simple_