Sha256: 3afe75e2213876db2bb6c693eb9901e913f510dbfb1164a73618cd6c1765e8d1

Contents?: true

Size: 407 Bytes

Versions: 23

Compression:

Stored size: 407 Bytes

Contents

# FIXME: This is a temporary server to handle rps token registration
class MyServer < Rhoconnect::Server
  post '/rps/token' do
  	user = "tuser"
  	User.create(:login => user)
  	current_app.users << user
	fields = {:user_id => user}
    fields[:app_id] = 'application'
    fields[:device_type] = 'rhoconnect_push'
    fields[:device_pin] = params['token']
    Client.create(fields)
  	status 200
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 examples/simple/my_server.rb
rhoconnect-7.5.1 examples/simple/my_server.rb
rhoconnect-7.4.1 examples/simple/my_server.rb
rhoconnect-7.1.17 examples/simple/my_server.rb
rhoconnect-6.2.0 examples/simple/my_server.rb
rhoconnect-6.0.11 examples/simple/my_server.rb
rhoconnect-5.5.18 examples/simple/my_server.rb
rhoconnect-5.5.17 examples/simple/my_server.rb
rhoconnect-5.5.15 examples/simple/my_server.rb
rhoconnect-5.5.0.22 examples/simple/my_server.rb
rhoconnect-5.5.2 examples/simple/my_server.rb
rhoconnect-5.5.0.7 examples/simple/my_server.rb
rhoconnect-5.5.0.3 examples/simple/my_server.rb
rhoconnect-5.5.0 examples/simple/my_server.rb
rhoconnect-5.1.1 examples/simple/my_server.rb
rhoconnect-4.0.4 examples/simple/my_server.rb
rhoconnect-4.0.3 examples/simple/my_server.rb
rhoconnect-4.0.2 examples/simple/my_server.rb
rhoconnect-4.0.1 examples/simple/my_server.rb
rhoconnect-4.0.0 examples/simple/my_server.rb