Sha256: cc95d891fec1181bc8626bcae70db854a57693d02a80b5b9ffb051c65b7400fe
Contents?: true
Size: 508 Bytes
Versions: 44
Compression:
Stored size: 508 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 '/contacts' end def login;end end end
Version data entries
44 entries across 22 versions & 1 rubygems