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