Comments (1)
I got the same errors today. I found the problem is related to the version of OmniAuth.
When you use omniauth > 2.0, you should explicit the version of omniauth-rails_csrf_protection to 1.0
reference: https://github.com/omniauth/omniauth/wiki/Upgrading-to-2.0#rails
Gemfile
gem 'omniauth-linkedin-oauth2', '~> 1.0'
gem 'omniauth-rails_csrf_protection', '~> 1.0'
part of my Gemfile.lock
oauth2 (2.0.6)
faraday (>= 0.17.3, < 3.0)
jwt (>= 1.0, < 3.0)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
rash_alt (>= 0.4, < 1)
version_gem (~> 1.1)
omniauth (2.1.0)
hashie (>= 3.4.6)
rack (>= 2.2.3)
rack-protection
omniauth-linkedin-oauth2 (1.0.0)
omniauth-oauth2
omniauth-oauth2 (1.8.0)
oauth2 (>= 1.4, < 3)
omniauth (~> 2.0)
omniauth-rails_csrf_protection (1.0.1)
actionpack (>= 4.2)
omniauth (~> 2.0)
from omniauth-linkedin-oauth2.
Related Issues (20)
- Get the original referer HOT 1
- Unauthorised scope r_liteprofile with linkedin oauth2 HOT 30
- release version that supports omniauth-oauth2 v1.5 HOT 1
- Failing to get /me HOT 5
- Authenticating always shows "allow/deny" prompt for legacy linkedin app HOT 3
- Secret is nil HOT 1
- Getting timeout from Faraday when requesting access_token, email_addrees or profile info HOT 3
- Authentication failure! invalid_credentials: OAuth2::Error HOT 3
- Does the gem return the refresh token when a token is expired? HOT 1
- Non-default scopes
- You need to pass the "client_id" parameter HOT 5
- Using r_emailaddress as scope giving Authentication failure! invalid_credentials: OAuth2::Error HOT 1
- Authentication failure! Connection reset by peer: Faraday::SSLError
- The authorization flow opens the linkedin app and never returns to the callback url (IPHONE) HOT 1
- Why is commit with refresh token support not released to rubygem
- No longer works with oauth2 gem v2.0+ HOT 7
- A required parameter "client_secret" is missing HOT 5
- Linkedin Unversioned API will be deprectaed by June 30 HOT 1
- access_token post request HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omniauth-linkedin-oauth2.