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

Sign in with linkedin javascript api #38

Open
javidan opened this issue Jan 4, 2018 · 0 comments
Open

Sign in with linkedin javascript api #38

javidan opened this issue Jan 4, 2018 · 0 comments

Comments

@javidan
Copy link

javidan commented Jan 4, 2018

how to use Omniauth callback with LinkedIn API?
I'm trying to use following js code

const url = `/users/auth/linkedin/callback`;
IN.User.authorize((e) => {
    this.sendRequest(url,{}); // send post request without any params 
});

which sends post request after successful authorization through Linkedin API.

I, [2018-01-04T17:14:25.240777 #5985]  INFO -- omniauth: (linkedin) Callback phase initiated.
E, [2018-01-04T17:14:25.375784 #5985] ERROR -- omniauth: (linkedin) Authentication failure! session_expired: OmniAuth::NoSessionError, Session Expired

That's what I got on serverside. Is there any way to achieve authorization without redirecting?

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

No branches or pull requests

1 participant