From 2c9a3d679d11b2aa0053d8db03c63fbb158fab1f Mon Sep 17 00:00:00 2001 From: djkazunoko Date: Thu, 4 Apr 2024 07:25:22 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20GitHub=E3=81=AEClient=20ID=E3=81=A8Clie?= =?UTF-8?q?nt=20secrets=E3=82=92omniauth=E3=81=AB=E8=A8=AD=E5=AE=9A=20(#66?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/initializers/omniauth.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 config/initializers/omniauth.rb diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb new file mode 100644 index 0000000..1ce5801 --- /dev/null +++ b/config/initializers/omniauth.rb @@ -0,0 +1,5 @@ +Rails.application.config.middleware.use OmniAuth::Builder do + provider :github, + Rails.application.credentials.github[:client_id], + Rails.application.credentials.github[:client_secret] +end