Module: Omniauth::Lti::Context
- Defined in:
- lib/omniauth-lti/context.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/omniauth-lti/context.rb', line 5 def self.included(receiver) receiver.class_eval do # add lti_tool_provider as a helper method to received object helper_method :lti_tool_provider attr_reader :lti_credentials def lti_credentials=(credentials) if credentials && credentials.is_a?(Hash) @lti_credentials = credentials.keys.inject({}) {|h,k| h[k.to_s] = credentials[k] ; h } end end end end |
Instance Method Details
#save_lti_context ⇒ Object
19 20 21 |
# File 'lib/omniauth-lti/context.rb', line 19 def save_lti_context session[LTI_LAUNCH_PARAMS_SESSION_NAME] = request.env['lti.launch_params'] end |