2012-09-28 18 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

你是什麼意思的時間?系統時間? –