Sha256: 9df34e04c09abac4cca705991864ae56cd657acc0799a9e449e3f7f4015b9d48
Contents?: true
Size: 942 Bytes
Versions: 1
Compression:
Stored size: 942 Bytes
Contents
require 'learnosity/sdk/request/init' # Learnosity helper. require 'securerandom' class AuthoraideController < ApplicationController @@security_packet = { # XXX: This is a Learnosity Demos consumer; replace it with your own consumer key. Set values in application.rb. 'consumer_key' => Rails.configuration.consumer_key, 'domain' => 'localhost', } # XXX: The consumer secret should be in a properly secured credential store, and *NEVER* checked into version control @@consumer_secret = Rails.configuration.consumer_secret @@authoraide_request = { "user"=> { "id" => "brianmoser", "firstname" => "Test", "lastname" => "Test", "email" => "test@test.com" } } def index @init = Learnosity::Sdk::Request::Init.new( 'authoraide', @@security_packet, @@consumer_secret, @@authoraide_request ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
learnosity-sdk-0.3.0 | docs/quickstart/lrn-sdk-rails/app/controllers/authoraide_controller.rb |