if @token
logger.info "request token params: #{params.inspect}"
# request tokens indicate what permissions the client *wants*, not
# necessarily the same as those which the user allows.
current_client_application.permissions.each do |pref|
if @token
logger.info "request token params: #{params.inspect}"
# request tokens indicate what permissions the client *wants*, not
# necessarily the same as those which the user allows.
current_client_application.permissions.each do |pref|