Try the redirection for authentification. To no avail, yet.

This commit is contained in:
Señor Rolando 2013-12-08 23:24:32 +01:00
parent e5bf47aa28
commit 8714650d04

View file

@ -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