Skip to content

Sign in with linkedin javascript api #38

@javidan

Description

@javidan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions