-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Forcing SSL in production * upgrading JWT to version 2.4.1 * Adding development credentials and updating .gitignore * Adding omniauth initializer * Google OAuth code set up * First iteration: works * Adding Down gem to manage downloads * User's avatar is now downloaded from Google if any Co-authored-by: Stephane Paquet <spaquet@up4b.com>
- Loading branch information
Showing
14 changed files
with
110 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,5 @@ | |
!/app/assets/builds/.keep | ||
|
||
/node_modules | ||
|
||
/config/credentials/development.key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2TS6/xwDC3ESz5XJgscb0P89l5mWPtl5KWB5UROa4/sOvR0SOs15MaleH5W/HGfo7JUZxNuQUA8QTdBSyet+di/YCnGTmIhowy8yKLFHFU9JMbZ2dC1QDeAK6enO+sHilOnBuTaUdT+ZurXBk8bQ7vdkUXIz0+eGCdK/6am5MXUjFsIKNdWATVk6XtX9beMuhuayseYKwQmQ3RFve/dDqs1L+W02pjEHqyUBfphQosaSgP4s7HTDYpcD8Wpf2EuykH0wZ6ysuF35992mx1+AfMUFh4PCICon6SsyHxQupVZ8yk8Kg5kD1neyCCMmgKqL/BqpT3nboM8mTJZwRfgku/KfAg86Zf38X1t4hVUs0lKwFXisjW1c5dWuaZhrC67tFw9mig6esJ+O4hRcHB/MNqXkZ2jkkUdXpUB3--tVZXcnKfwd2DuIv1--OOWPJW13GYT9iw6dsaNOGw== | ||
No7aJ089FSsDLm/FrJNjqT5ZymFM8ladxE1tmnbxtlY9L/ABgEteSQ10MXU5bogbk0CUFd/MuTr/puSnhX5N8ycRpjSwyQQl36Aip2UYHI+/XeHJnGSsRHEPfDIiaW88MZrqBUpMy9MlumrpYDGysi/gZC2MuPQXkLagn/1wG1yzLvDQPutnlGzEiw3X83vifMgM/L3Heh26MRTAWuU3yPend46X2oFhscCQJgMxyGz4nq2l4vC7bqbyB45KNDCCHgGAr+e60HwFL5zw6gzy61Pvc4W7HU7xbWMTIbvJQxB6eKd6mKoX213h9ISKR0iAEubDUvypCwfZJFWp9nvkL5r5LIQDmPEHciSO0zTkkOmLMfHrJCNTKvFrJHDvk4ABiJ+dAUASMABhv5tb+5IlehyqTegz--/ADGHrM0sG+xBTr/--PQ23CJC9MvxeK3tUBYKU1g== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9ikLlw2pDypEjirE6xpnyRnM1N6FEK0AfaWOuSZ30RoXa+I+Dr5sP4xNB/EjQWLMVvNxUyc9eCZmDj3FDyzmqbfRtBRSiWXfhUHn7EYyLTvLBn3f1BUrtYYmhLE4Da50d6nBFRCe5eegQXAzviA2nTxic7yZDeoZc3btrMJAhcXOkktWDvSuVD9evWPWWV/UaktCy92NhEc0Df5eFyWH5tkQIzXrXQq1R6uTUS7lX+d2EcNivV9ttfmhA1EHZwU5zPeRKSuEXpZhVCyx+tIo49QSABTO09kAvI6xr0fALvXEq4+X--8pCTVasD9aOEmkv6--y7GHvpFVZkZJktriXSA+ZA== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Rails.application.config.middleware.use OmniAuth::Builder do | ||
if Rails.env.production? | ||
provider :google_oauth2, ENV['GOOGLE_CLIENT_ID'], ENV['GOOGLE_CLIENT_SECRET'] | ||
else | ||
provider :google_oauth2, Rails.application.credentials.google[:client_id], Rails.application.credentials.google[:client_secret] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class AddUidAndProviderToUsers < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :users, :uid, :string | ||
add_column :users, :provider, :string | ||
|
||
add_index :users, :uid, unique: true | ||
add_index :users, :provider | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.