Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @alfio
    I tried to solve it but I ran into many issues

    first, my use case was to provide mobile users in native (android, ios) application to Login with Facebook, Google, and with regular user name and password,

    I understand OAuth flows (authorization code) is the security standard for providing a signing-in mechanism for native apps, but I haven’t understood yet how nextend social login could possible provide that kind mechanism same as web through rest API,

    Also, I wasn’t able to allow some routes to be anonymous which is a use case for my application.

    also, I wasn’t able to find how to register user after social login through your gist,

    So I’m a bit confused now, I want to understand if nextend social login will work with my scenarios, or if you know other solutions I will be glad (even if it is premium plugins)

    Thanks
    Joseph

    Also you have to add

    
     /**
         * JWT Auth Public
         *
         * @since 1.0.0
         *
         * @var object \Jwt_Auth_Public
         */
        private static $jwtAuthPublic;
    

    to the static variables

    Thanks so much

    Thanks for your help,
    I tried to get it working,
    I faced many issues, first the snippet of code is referencing on of the classes in a plugin (NSL REST) but it was giving me exception that REST is not declared
    I tried to include namespace before class name like this
    new NSL\REST()
    it gave me another exception of accessing jsonAuth static variable,

    [27-Jan-2020 22:26:21 UTC] PHP Fatal error Uncaught Error: Access to undeclared static property: RestApi::$jwtAuthPublic in /mnt/data/vhosts/casite-1178365.cloudaccess.net/httpdocs/wp-content/themes/twentytwenty/functions.php:826
    
    Stack trace:
    
    #0 /mnt/data/vhosts/casite-1178365.cloudaccess.net/httpdocs/wp-content/themes/twentytwenty/functions.php(1620): RestApi->__construct(Object(Jwt_Auth), Object(Jwt_Auth_Public))
    

    it is hard for me to get it working, even after installation of JWT authentication for wp-rest api, still not working !

    sorry to bother you,

    but if you can make to a plugin I can buy it

    Thanks

    • This reply was modified 4 years, 10 months ago by jwasily.

    Thanks So much, @picaland for sharing that gist, I was searching for a couple of days, I’m glad that you already went there and found out a solution,

    My question which may sound completely newbie, I’m trying to install that extended class that you provided to extend nextend API, do you know where I can start? (even tutorial would be good for me too)

    Thanks
    Joseph

Viewing 4 replies - 1 through 4 (of 4 total)