Sha256: a2b94de79c199d685a49be45a065cd4e0b4f376868066fb8a3c5ac2d79b3d3a8
Contents?: true
Size: 520 Bytes
Versions: 23
Compression:
Stored size: 520 Bytes
Contents
module Oauth class AuthorizationController < ApplicationController def authorize url = Services::Hubspot::Authorization::GetAuthorizationUri.new(request: request).call redirect_to url end def callback session[:tokens] = Services::Hubspot::Authorization::Tokens::Generate.new( code: params[:code], request: request ).call Services::Hubspot::Authorization::Authorize.new(tokens: session[:tokens]).call redirect_to '/' end def login;end end end
Version data entries
23 entries across 12 versions & 1 rubygems