• Resolved Alfio Piccione

    (@picaland)


    I’m trying to use the plugin to obtain user authentication through the use of the REST API, made available to the pluign.
    endpoint: wp-json / nextend-social-login / v1
    from what I understand from the code it would be enough to pass the provider es “google” and google access_token

    but this returns “Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.”

    although I set the token in “The authorization data”,
    what would be the exact work flow to get a social login via REST API?

    thanks!

Viewing 2 replies - 46 through 47 (of 47 total)
  • Thread Starter Alfio Piccione

    (@picaland)

    @sawasblog

    There is a filter in the pluign

    $noAuth = apply_filters('sl_extended_no_auth_request', $noAuth, $_SERVER['REQUEST_URI'], $_SERVER['REQUEST_METHOD']);

    to check the requests you don’t want to protect. the default JWT pluign protects all requests.
    I introduced the filter to leave the freedom to control what to protect and what not.

    @angiiedg
    the gist was eliminated as I created a premium plugin.

    @picaland
    Where to find the premium plugin?

Viewing 2 replies - 46 through 47 (of 47 total)
  • The topic ‘REST api social login work flow’ is closed to new replies.