• Hi everyone,
    First, most certenlly this is a naive question but after a few days I’m not satisfied with MY current solution.

    My background:
    I’m learning flutter and WP delivers a variety of cases which grants me the opportunity to start learning on the go. I never develop anything in wp (just the ocasional, a friend needs a webpage.. hey I will help you !)

    Objetive
    Enable users from my flutter app to login using social login which integrates with WordPress.

    Why WSL?
    I, indeed, achieve the objective using Super Socializer, although I wanted to try a light weight solution and non invacive one (both important). So wanted to try WSL as per your main site inspired honesty & hard work.

    What did I achieve with WSL?
    Also achieved the objective with WSL.

    Process:
    -Enable three buttons in my flutter app (Facebook, twitter, Google)
    -Linked each button to the corresponding provider call (example url:/wp-login.php?action=wordpress_social_authenticate&mode=login&provider=Google) and open them in a webView
    -Once user is logged in, extract user just created
    -Make an aditional call via JWT admin token to change user password just created (wordpress one)
    -To finish I generate a new user token using basic auth in order to make future requests via normal WP rest api.

    This achieves the objective, having a light plugin such as WSL.

    Why this post?
    I think from several angles, this is an atrocious solution, having to intercept in the middle, generating a new password on the background, generating a new token.

    I read your wiki, but can not grasp which are the endpoints I need to call, or even what to do once I got WSL token, or how to refresh WSL token in order not to expire in the future.

    Once again, apologise for this naive question, and would appriciate any help to improve my solution.

  • The topic ‘WSL from Mobile’ is closed to new replies.