-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move NONCE definition to top level initializer
this way it doesn't have to be defined in the tc and tp apps again
- Loading branch information
Ranko Radonić
committed
Apr 7, 2016
1 parent
f28aa43
commit 7ac4776
Showing
2 changed files
with
2 additions
and
2 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
NONCE_TIME_TO_LIVE = 300 # seconds |
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,11 +1,10 @@ | ||
include Lti2Commons | ||
include WireLogSupport | ||
|
||
NONCE_TIME_TO_LIVE = 300 # seconds | ||
Rails.application.config.nonce_cache = Cache.new :ttl => NONCE_TIME_TO_LIVE | ||
|
||
if ActiveRecord::Base.connection.table_exists? 'lti2_tp_registries' | ||
Rails.application.config.tool_provider_registry = Lti2Tp::ToolProviderRegistry.new | ||
end | ||
|
||
Rails.application.config.wire_log = WireLog.new "ToolProvider", File.expand_path("../tc_sample_app/public/wirelog.html") | ||
Rails.application.config.wire_log = WireLog.new "ToolProvider", File.expand_path("../tc_sample_app/public/wirelog.html") |