• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

API Authenticaton

Knowledge Base
2
5
1.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    aroobaarooj499 last edited by 30 Apr 2020, 11:29

    Hi! Can anyone help me about jwt authentication on bagisto api as i did what was mentioned on another forum post about jwt but did not get expected results?

    1 Reply Last reply Reply Quote 0
    • R
      rahul last edited by 30 Apr 2020, 13:04

      Hello @aroobaarooj499

      Please follow the given link - https://forums.bagisto.com/topic/149/i-need-to-deliver-the-api-token-from-the-json-response-not-the-header/4

      1 Reply Last reply Reply Quote 0
      • A
        aroobaarooj499 last edited by 30 Apr 2020, 13:27

        @rahul i have tried the same but not able to get token and even authentication on api request i got unauthorized message back...

        1 Reply Last reply Reply Quote 0
        • A
          aroobaarooj499 last edited by 2 May 2020, 12:52

          @rahul can you please help me i am not able to figure out actual issue as without generating jwt secret key i am able to get token but i want to protect my other api of products , categories so no one can get data as by default we are getting all data from them without authentication as after generating secret ki as mentioned in given link by you, now i aint able to authenticate user and every api return with 401 unauthorized request.....please guide me if i am doing something wrong

          1 Reply Last reply Reply Quote 0
          • R
            rahul last edited by 8 May 2020, 17:56

            Hi @aroobaarooj499

            You need to pass the generated token in the header in order to achieve the authentication.

            1 Reply Last reply Reply Quote 0
            2 out of 5
            • First post
              2/5
              Last post