I am writing a Rail 3 app and I'm trying to go people to LinkedIn using sign_in or sign_up . I have followed the tutorial but I am getting some strange results. For some reason, calling the GET / POST / user_sessions on application / user_session which sends my credentials to LinkedIn
posted embark on 2011-03-16 "/ user_sessions" 21:56:13 to 127.0.0.1 -0700 processing UserSessionsController # create as HTML parameters: log rail server Is: {"UTF8" => "One ????" "Authenticity_token" = & gt; "M + W0ExS4FZE5wg / hPI6FzL4dnAGdTS / yllQWqOoSNRs =", "user_session" = & gt; {"Username" = & gt; "" "Password" = & gt; "[filtered]", "remember_me" = & gt; "0"}, "login_with_oauth" = & gt; "login" with LinkedIn} https://www.linkedin.com Redirected to / uas / oauth / authenticate? Oauth_token = 76e56c85-3896-419a-ab94-15a05332d04b found in the full 305 455ms "/ user_sessions? Oauth_token = 76e56c85-3896-419a-ab94-15a05332d04b and 127.0.0.1 to oauth_verifier = 86765" 2011-03-16 21: 56: 13-0700 Processing UserSessionsController # as the index HTML parameter: {"oauth_token" = & gt; "76e56c85-3896-419a-ab94-15a05332d04b", "oauth_verifier" => "86765"} Rated layout / _stylesheets.html .erb (1.9ms) rendered layout / _header.html.erb (78.3ms) rendered layout / _footer.html.erb (3.3ms) we sang LAD / index. Html. ARB / layout application within (94.6 ms) full 200 OK 103ms (Views: 101.3 MS | I have to stub out index user_sessions controller so I do not fail with error :
No routes in matches "/ user_sessions" But I do not understand why I do not want to link to the login page Has been sent and then returned to my app. Any help would be welcomed.
If you are logged in before LinkedIn? And you have to authorize your application before?
If so, thats why you do not see the LinkedIn login screen.
Comments
Post a Comment