Questions tagged [sorcery]

An authentication plugin for Rails 3 and 4, inspired by restful_authentication, Devise and Authlogic with a focus on minimalism.

An authentication plugin for Rails 3 and 4, inspired by restful_authentication, Devise and Authlogic with a focus on minimalism.

Links:

145 questions
27
votes
3 answers

Rails5 Directly inheriting from from ActiveRecord::Migration is not supported. Sorcery Gem

I am trying to migrate a Rails 3 app. I installed Rails v 5.1.5 using RVM. When trying db:migrate, I get the following. rake aborted! StandardError: An error has occurred, all later migrations canceled: Directly inheriting from…
uberdave
  • 432
  • 1
  • 5
  • 14
9
votes
5 answers

How can I access Sorcery in my RSpec tests?

Sorcery authentication gem: https://github.com/NoamB/sorcery Sorcery's creator provides an example Rails app with Sorcery test helpers included in its Test::Unit functional tests:…
danneu
  • 9,244
  • 3
  • 35
  • 63
8
votes
1 answer

Sorcery Gem - Custom user_info_mapping for external providers

I am using version 0.7.7 of the Sorcery Authentication Gem by NoamB on my Rails 3.2 App I am looking for a possibility how i can hook up a method which is doing the user info mapping for a specific external login provider (e.g. facebook,…
alex
  • 4,922
  • 7
  • 37
  • 51
5
votes
1 answer

What method of authentication should I use with the Sorcery gem using a mobile application?

I'm trying to determine if there is a specific method of authentication one should use besides the traditional basic HTTP auth that is offered with the Sorcery gem given the fact I would want to authenticate users on a variety of mobile platforms…
joshcollie
  • 471
  • 1
  • 4
  • 9
5
votes
0 answers

Invalid verification code format facebook oauth 100

I am integrating my app on facebook But its give an error with code 191 {"message"=>"Invalid verification code format.", "type"=>"OAuthException", "code"=>100, "fbtrace_id"=>"FoiD8d/qbxS"}: {"error":{"message":"Invalid verification code…
Haseeb Ahmad
  • 7,914
  • 12
  • 55
  • 133
5
votes
1 answer

Sorcery/Capybara: Cannot log in with :js => true

I've been using capybara for a while, but I'm new to sorcery. I have a very odd problem whereby if I run the specs without Capybara's :js => true functionality I can log in fine, but if I try to specify :js => true on a spec, username/password…
PlankTon
  • 12,443
  • 16
  • 84
  • 153
4
votes
2 answers

Rails admin with Sorcery

I'm trying to install the Rails Admin Gem using Sorcery for authentication instead of Devise. Rails admin does provide a hook that you can use to attach your own authentication method. Here is the example they provide in their docs (using…
David Tuite
  • 22,258
  • 25
  • 106
  • 176
4
votes
2 answers

How do i add default data in rails strong params?

Lets say if i want to generate and set default password for user while creating them in admin. and i want to do something like this, def user_params params.require(:user).permit(:first_name, :last_name, :email, :password=>…
suyesh
  • 530
  • 7
  • 23
4
votes
0 answers

how to authenticate user after success-full registration using doorkeeper gem

I am working on project that is using doorkeeper gem. I have setup everything successfully. Now what i want to do is to logged the user in after successful registration.I am using sorcery gem for authentication . My registration process is working…
monsur
  • 601
  • 6
  • 18
4
votes
2 answers

Rails Sorcery update attributes of model without password

I use sorcery for user authentication in a rails 4.1 application. Everything works fine. But when I try to update specific attributes of the user model (which is authenticated by sorcery), I get an error that the password is blank and is too…
prajwaldp
  • 178
  • 1
  • 14
4
votes
3 answers

invalid salt (BCrypt::Errors::InvalidSalt)

Since upgraded to Ruby 2.2.0 I get the following message in my tests: invalid salt (BCrypt::Errors::InvalidSalt) I didn't find any upgrade notice helping me to understand the problem. I'm using Rails 4.1.8 and Sorcery 0.8.6. Anybody else having…
Reza
  • 81
  • 1
  • 7
3
votes
3 answers

Rails Sorcery Bug? Creates Duplicate User Accounts

The example sorcery code shown on github appears to me to create duplicate accounts if it is extended to allow for multiple sign in methods (which is the whole point of oauth). You can see in the snipit here that create_from() will be called if…
Dan Oblinger
  • 489
  • 3
  • 15
3
votes
1 answer

Sorcery error for Facebook login on Heroku

I'm using Noam Ben Ari's awesome gem Sorcery, and there is an issue I can't figure out. Facebook login works fine on local server, but not on Heroku: 2011-10-03T03:50:21+00:00 app[web.1]: Started GET "/oauth/callback? …
shabdar
  • 371
  • 1
  • 8
3
votes
2 answers

redirect and login or login and redirect?

Simple question. What is preferred and why, or does it simply not matter at all? Sorcery gem example: if @user.save redirect_to index_path auto_login(@user) OR if @user.save auto_login(@user) redirect_to index_path Just a skipment of a…
carrers2.0
  • 31
  • 1
3
votes
1 answer

Ruby on Rails 3.2 Sorcery authentication with sub users

I'm using Ruby on Rails 3.2.8 with Sorcery authentication. What is the best way to create sub-users accounts? Ideally, I would like to invite members by email and have them click on a link and they choose their username/password. Is it possible to…
Michael
  • 115
  • 1
  • 6
1
2 3
9 10