Linkedin oauthでこける

invalid redirect_uri. This value must match a URL registered with the API Key.

急にこんなエラーでこける。それもproduction環境で。

f:id:skymay:20160312141620p:plain


linkedinのdeveloperページで承認リダイレクトURLを設定。
設定先はエラーが出ている画面の箇所

&redirect_uri=https%3A%2F%2Fwww.*************.com%2Fauth%2Flinkedin%2Fcallback&

この場合だと
https://www.*********.com/auth/linkedin/callback


この設定でとりあえずこのエラーは回避。

あ。最後にLinkedinのDeveloperページの下部にある更新ボタンで更新を忘れずに。