Skip to content

Commit

Permalink
Get LTI key and secret from the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
cbothner committed Apr 19, 2017
1 parent cb82691 commit 5f4e1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
# up on your models and hooks.
config.omniauth :facebook, ENV["FACEBOOK_CLIENT_ID"], ENV["FACEBOOK_CLIENT_SECRET"]
config.omniauth :google_oauth2, ENV["GOOGLE_CLIENT_ID"], ENV["GOOGLE_CLIENT_SECRET"], {name: "google"}
config.omniauth :lti, oauth_credentials: {test: "secret"}
config.omniauth :lti, oauth_credentials: Hash[ENV["LTI_KEY"], ENV["LTI_SECRET"]]

if Rails.env.test?
OmniAuth.config.test_mode = true
Expand Down

0 comments on commit 5f4e1c5

Please sign in to comment.