2012-09-28 22 views
0

我一直有这样的错误,当我跟踪Ryan的教程如何使用Doorkeeper to protect rest API守门人和OAuth2用户

OAuth2::Error: invalid_grant: The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. {"error":"invalid_grant","error_description":"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."}

,当我在解析令牌的阶段我。有什么问题以及我如何解决这个问题?

回答

1

我有一个习惯,提前20分钟调整我的时间,这是这个问题的根源。通过同步改变时间,现在一切正常:)

+1

你是什么意思的时间?系统时间? –