LoginSignup
0
0

More than 5 years have passed since last update.

omniauthとpowを使っていてコールバック先のポートが19999になる場合の対処方法

Posted at

config/initializers/omniauth.rbあたりで次のように設定する:

OmniAuth.config.full_host = "http://yourapp.dev"

omniauth-twitter あたりを使っているとredirect_uriパラメータがrequest.envをもとに作られて認可サーバに送られるんだけど、powが19999とかで一旦プロキシしてから処理してるのでそのときにポート番号が変わってしまう。

Twitterの管理画面でCallback URLを書き換えても効果が無かった。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0