Sha256: 3555bd7c362ed9992055659f624edcea69dec298b0cea7e2536b6efe9f48d881

Contents?: true

Size: 514 Bytes

Versions: 12

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

class ApplicationController < ActionController::Base
  include DHS::OAuth
  ACCESS_TOKEN = 'token-12345'

  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  def root
    render nothing: true
  end

  def access_token
    ACCESS_TOKEN
  end

  def access_token_provider_1
    "#{ACCESS_TOKEN}_provider_1"
  end

  def access_token_provider_2
    "#{ACCESS_TOKEN}_provider_2"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 spec/dummy/app/controllers/application_controller.rb
dhs-1.5.0 spec/dummy/app/controllers/application_controller.rb
dhs-1.4.2 spec/dummy/app/controllers/application_controller.rb
dhs-1.4.1 spec/dummy/app/controllers/application_controller.rb
dhs-1.4.0 spec/dummy/app/controllers/application_controller.rb
dhs-1.3.0 spec/dummy/app/controllers/application_controller.rb
dhs-1.2.0 spec/dummy/app/controllers/application_controller.rb
dhs-1.1.0 spec/dummy/app/controllers/application_controller.rb
dhs-1.0.3 spec/dummy/app/controllers/application_controller.rb
dhs-1.0.2 spec/dummy/app/controllers/application_controller.rb
dhs-1.0.1 spec/dummy/app/controllers/application_controller.rb
dhs-1.0.0 spec/dummy/app/controllers/application_controller.rb