From 8714650d04e5d3850dcb3ed35e53b220be3a1a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=B1or=20Rolando?= Date: Sun, 8 Dec 2013 23:24:32 +0100 Subject: [PATCH] Try the redirection for authentification. To no avail, yet. --- app/controllers/reposts_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/reposts_controller.rb b/app/controllers/reposts_controller.rb index 95847d9..faa22e5 100644 --- a/app/controllers/reposts_controller.rb +++ b/app/controllers/reposts_controller.rb @@ -1,3 +1,4 @@ +require 'erb' # for url_encode() require 'net/http' require 'uri' @@ -35,7 +36,6 @@ class RepostsController < ApplicationController #history = YAML.load('history.yml', :safe => true) #lastrepostid = history["lastrepost"] #latestid = lastrepostid - # fetch all mentions since last one ## API - fetch( since_id=previous max_id ) #new_mentions.each do | post | @@ -45,5 +45,6 @@ class RepostsController < ApplicationController # store latest repost for next time # TODO insert into reposts values("karlsruher", post.id, latestid) + redirect_to ERB::Util.url_encode("https://account.app.net/oauth/authenticate?client_id=aeTtXn6khX4XwvqHYH4J3xzzjDQmW5TJ&response_type=code&redirect_uri=https://alpha.app.net/karlsruher&scope=stream") end end