Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devise 4.7.2 & Omniauth 2.0.3 error: You are using an old OmniAuth version, please ensure you have 1.0.0.pr2 version or later installed. #5354

Closed
wflanagan opened this issue Mar 5, 2021 · 8 comments

Comments

@wflanagan
Copy link

I attempted to upgrade my app to the latest Devise and Omniauth. I am tracking master on Omniauth.

In my bundle update, it updated Omniauth from 1.9.1 to 2.0.3. The Devise version did not change.

When attempting to run my app again, I got the error described in the title. I have downgraded for now, but I thought you should be aware.

@carlosantoniodasilva
Copy link
Member

carlosantoniodasilva commented Mar 5, 2021

Please use Devise master for now, it contains the necessary fixes to enable OmniAuth 2.x, just wasn't released as a stable version yet.

Check the changelog for more info.

Thanks.

@muhammadyana
Copy link

Hello i get same error, i have update my devise gem into branch master but it still error
DEPRECATION WARNING: Devise::Models::Authenticatable::BLACKLIST_FOR_SERIALIZATION is deprecated! Use Devise::Models::Authenticatable::UNSAFE_ATTRIBUTES_FOR_SERIALIZATION instead. (called from <main> at /Users/user/myapp/config/application.rb:21)

this is my gemfile

gem 'devise', :github => 'heartcombo/devise', :branch => 'master'
gem 'devise_invitable', '~> 2.0.0'
gem 'devise_token_auth'

is there any solutions?
Thanks

@carlosantoniodasilva
Copy link
Member

@muhammadyana that's just a deprecation of another constant in Devise that is on master, and it looks like devise_token_auth will need to be updated to accommodate for that eventually: lynndylanhurley/devise_token_auth#1474 and lynndylanhurley/devise_token_auth#1473

@olbrich
Copy link

olbrich commented Apr 25, 2021

@carlosantoniodasilva Can we get the fix for the omniauth change on master released in an actual gem version soon? Even it that's the only change.

@carlosantoniodasilva
Copy link
Member

@olbrich at this point I'd consider harder to release just that change separately since it's already on master with a few others. That being said, I will probably go ahead and release master at some point soon since I haven't been able to look at other stuff I wanted to anyway.

You should have no problem using devise master in the meantime, though.

@carlosantoniodasilva
Copy link
Member

I just pushed v4.8 including this change, please give it a try and report back if you have any issues. Thanks.

@shqear93
Copy link

I'm still having this issue, this temporary solution worked for me

gem 'devise_token_auth', github: 'lynndylanhurley/devise_token_auth', branch: 'master'

lynndylanhurley/devise_token_auth#1474 (comment)

@michaelbina
Copy link

@shqear93's solution worked for me, but following here to find out when its fixed and I can switch back to main repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants