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