How to implement Oauth??

Home Forums Legacy Support Support queries Other issues How to implement Oauth??

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #145576
    muhadbk0
    Spectator
    How to implement OAuth? What are the keys to be passed at the time of user registration as well as user sign in. Because when i implemented it in my react app i got some issues.What i am getting is " rest_forbidden( "you are not allowed to do that")" error. If you need the portion of my code i can give it.When i searched ,i found that it may be due to .htaccess corruption. But i've tried that too , not working..Please provide any docs if possible..
    #145646
    Anshuman Sahu
    Keymaster
    try adding this line in .htaccess file in the end : SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0   Also check the function  : "signin_user" and " register_user " in wp-content/plugins/vibe-course-module/includes/api/class-api-user-controller.php file.
    #145691
    muhadbk0
    Spectator
    This reply has been marked as private.
    #145710
    muhadbk0
    Spectator
    This reply has been marked as private.
    #145784
    Anshuman Sahu
    Keymaster
    ok first you need to make a hit to this endpoint : http://site.com/wp-json/wplms/v1/track/?access=0   This will give various data about what has been updated on site along with a " state " This state needs to posted with the register user call .Only then you will be allowed to register and login . check this function " get_verify_permissions_check " in wp-content/plugins/vibe-course-module/includes/api/class-api-user-controller.php file.
    #145788
    Anshuman Sahu
    Keymaster
    this data should be posted :  

    {

    "username":"testere",

    "state":"##@$@$",

    "email":"[email protected]",

    "password":"123456",

    "client_id":"bPs2Dnck4fLr08YHkW2qMwy"

    }

    #145833
    muhadbk0
    Spectator
    Yeah thank you so much i really appreciate your valuable reply..Itz working cool..
    #145906
    Mark Morgan
    Spectator
    Thanks for the confirmation, closing this topic now.
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to implement Oauth??’ is closed to new replies.