Questions tagged [omniauth]

OmniAuth is a flexible Ruby authentication library that standardizes multi-provider authentication for web applications

OmniAuth is a flexible authentication system for Ruby applications utilizing Rack middleware, such as Rails applications. It supports a large number of external authentication providers, such as Facebook, Google, and Twitter.

2360 questions
1
vote
1 answer

How to get twitter user name from request.env["omniauth.auth"] (Rails)

I am using Omni auth in my application. I could able to recieve token and secret by using below code.. auth = request.env["omniauth.auth"] @token = auth['credentials']['token'] @secret = auth['credentials']['secret'] but i am stuck with getting the…
Alan
  • 235
  • 4
  • 24
1
vote
1 answer

Rails 3 + Omniauth: undefined method `persisted?' for []

I am trying to user omniauth-twitter for my website, but whenever I click on twitter login, I get this error undefined method `persisted?' for [] omniauth_callbacks_controller.rb file... def twitter # You need to implement the method below in your…
PeaceDefener
  • 618
  • 2
  • 8
  • 22
1
vote
1 answer

Omniauth to login through Twitter

i am developing a rails application, which allows users to login through twitter and they can tweet and search. previously for some other application i used omniauth to login through twitter it worked fine(rails 3.1.3)(full log…
santosh
  • 81
  • 14
1
vote
1 answer

Persisting Salesforce OAuth Token

I'm trying to contact Salesforce REST API from my rails app and i'm authorizing my app through OAuth2. I'm just confused on the lifetime of the returned OAuth token. I assume this OAuth token is immortal and I can safely store it in DB for future…
Aravind
  • 221
  • 4
  • 13
1
vote
1 answer

How do you directly access the Omniauth facebook image url?

Using Omniauth version 1.0.2, currently when I call env["omniauth.auth"]["info"]["image"] to get the image for the current user I get a URL: http://graph.facebook.com/100002739564577/picture?type=square This redirects to the actual jpeg url which is…
Goalie
  • 3,045
  • 5
  • 35
  • 46
1
vote
1 answer

Sinatra + omniauth + Android, advice sought

I'm developing a Sinatra app for which I'd like to use OmniAuth. So far, I have something similar to this for the web app: http://codebiff.com/omniauth-with-sinatra I'd like the web app to be usable via Android phones which would use an API,…
knirirr
  • 1,860
  • 4
  • 23
  • 37
1
vote
1 answer

how to solve this uninitialized constant UsersController::LinkedIn?

after successful verification from LinkedIn i forward to this controller and i get the uninitialized constant UsersController::LinkedIn this is where the control goes once the authentication is successful. class UsersController <…
Joe
  • 4,460
  • 19
  • 60
  • 106
1
vote
1 answer

How to get user profiles in linkedin using ROR+omniauth?

I have successfully verified the linkedin credentials using omniauth and it also redirects to my application with verifier and token, using this how to get user profile information from linkedin and what are all information we can get from…
Joe
  • 4,460
  • 19
  • 60
  • 106
1
vote
1 answer

Single Sign-on in Rails 3 without any extra work on the users part?

I have an app built in rails 3 that is currently using authlogic for authentication. I have another site built in php where I would be able to access my rails 3 app from within the php app, something like in an iframe. What I am wondering is if it…
dchapman
  • 365
  • 5
  • 20
1
vote
1 answer

Specifying redirect_url when contacting salesforce rest api

I'm trying to contact the salesforce api from my rails app. I use omniauth-salesforce gem for oauth. When I'm initializing the OAuth2::Client, my options hash looks like below { :site => 'https://login.salesforce.com', :authorize_url =>…
Aravind
  • 221
  • 4
  • 13
0
votes
1 answer

Devise, omniauth, ao-oauth automatic random login when switch to ruby 1.9.3

GEM ENV : gem 'rails', '3.0.11' gem 'omniauth', '0.3.2' gem 'oa-oauth', '0.3.2' gem 'devise', '1.4.7' Problem : Under ruby 1.8.7 everything works well. When launched under ruby 1.9.3(patch 125) a random user is automatically logged in (!!!) and…
philippe
  • 16
  • 1
0
votes
1 answer

omniauth identity not working on heroku with simple_form_for

I'm having trouble with Heroku not playing ball and throwing me this error ActionController::RoutingError (No route matches [POST] "/auth/identity/register"): I have the following working in dev. model/user.rb class User <…
gittinOld
  • 45
  • 1
  • 9
0
votes
2 answers

devise+omniauth devise helper like current_user,user_signed_in? not working

I am using devise and create login with Facebook using omniauth, but having problem of lost the devise helper methods access like current_user and user_signed_in? methods are not working. EDIT AuthenticationController def create omniauth =…
urjit on rails
  • 1,763
  • 4
  • 19
  • 36
0
votes
2 answers

'Invalid redirect_uri' while login with facebook account

I was using this tutorial to add facebook login to my app. But when I clicked 'login with facebook' link I get error in the browser: { "error": { "message": "Invalid redirect_uri: \u0414\u0430\u043d\u043d\u044b\u0439 URL \u043d\u0435…
ceth
  • 44,198
  • 62
  • 180
  • 289
0
votes
2 answers

rails 3.2 omniauth ssl windows

Apologies if this has been answered already, but I'm going through the posts here and can't find something that works. I've got Devise working with rails for authentication, and I'm trying to integrate OmniAuth for facebook. I'm getting the SSL…
jb44
  • 393
  • 1
  • 6
  • 23