1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ローカル環境のfacebookログインでhttpsじゃないと怒られるときの対策

Posted at

要約

ここ一年くらい、facebookのoauthログインでコールバックurlをhttpsにしないとローカルでもログインできなくなった。この記事のやり方で成功したのでメモ。ただし開発モードしかだめ。

詳細

enable Client OAuth Login and write "localhost:3000" in Valid OAuth Redirect URIs.
Save changes. it will automatically change to https://localhost:3000 , but it doesn't matter...
And set Status: In Development (THIS IS IMPORTANT!)
Then it will work in your http localhost.

この記事の通り

  • https://localhost:3000/xxx(xxxはコールバックのパス)で登録。(portは自分はrailsなので3000)
  • 開発モード
  • 実際にはhttp://localhost:3000から遷移
    したらできた
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?