小编sat*_*t's的帖子

如何通过rails中的标头传递持有者令牌?

在我的rails应用程序中,我能够Authorization: Token token='aUthEnTicAtIonTokeN'通过请求标头传递令牌

authenticate_with_http_token do |token, options|
 @auth_token = token
end
Run Code Online (Sandbox Code Playgroud)

但是当我传递令牌作为Authorization: Bearer token='aUthEnTicAtIonTokeN'获取令牌为nil的方法时.

如何在rails应用程序中通过标头传递不记名令牌?

authentication ruby-on-rails bearer-token

10
推荐指数
3
解决办法
6717
查看次数