Sha256: 331477038a3cd2f06b02051ce2ba4df228778d9fb28891f65174497481860bbc
Contents?: true
Size: 506 Bytes
Versions: 4
Compression:
Stored size: 506 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 root_path end def login;end end end
Version data entries
4 entries across 4 versions & 1 rubygems