Sha256: f1f49c86062b93960732934ad94b1fff70f147584b761e3aa4563b6c156733db
Contents?: true
Size: 514 Bytes
Versions: 25
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true class ApplicationController < ActionController::Base include LHS::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
25 entries across 25 versions & 1 rubygems