Sha256: 1dac2ad71d811908965492efa0feb73fa41905b895504790cf7d8ddd7baafcc3

Contents?: true

Size: 264 Bytes

Versions: 39

Compression:

Stored size: 264 Bytes

Contents

# Secured ping Controller
class SecuredPingController < ApplicationController
  before_action :authenticate_user

  def ping
    render json: {
      message: "All good. You only get this message if you're authenticated.",
      user: current_user
    }
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
auth0-5.16.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.15.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.14.2 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.14.1 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.14.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.13.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.12.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.11.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.10.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.9.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.8.1 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.8.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.7.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.6.1 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.6.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.5.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.4.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.3.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.2.0 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb
auth0-5.1.2 examples/ruby-on-rails-api/app/controllers/secured_ping_controller.rb