Bagisto Forum

    Bagisto

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

    API Authenticaton

    Knowledge Base
    2
    5
    531
    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

      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

        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

          @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

            @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

              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
              • First post
                Last post