Sha256: 6197dcf5b879d19c8ff0972a785e305d71c9593163fb5686bb2087a8881298b1
Contents?: true
Size: 576 Bytes
Versions: 9
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module Lcms module Engine class WelcomeController < Lcms::Engine::ApplicationController skip_before_action :authenticate_user!, if: -> { request.path.index('oauth2callback').present? } OAUTH_REFERER = 'https://accounts.google.com/' OAUTH_MESSAGE = 'Copy this code and use it to continue authorization' def index; end def oauth2callback head(:not_found) && return unless request.referer == OAUTH_REFERER render json: { text: OAUTH_MESSAGE, code: params[:code] } end end end end
Version data entries
9 entries across 9 versions & 1 rubygems