API Authenticaton
-
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?
-
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
-
@rahul i have tried the same but not able to get token and even authentication on api request i got unauthorized message back...
-
@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
-
You need to pass the generated token in the header in order to achieve the authentication.