Unable to Retrieve JWT Token and Receiving 403 Forbidden Status Code
I’m facing an issue with an API endpoint that previously worked fine for me. I was able to retrieve a jwtTokenValue from the cookies section of the response when making a POST request to the following API:
https://url/ams/shared/api/security/login
Here’s what’s happening now:
Issue: I am no longer able to fetch the jwtTokenValue from the cookies in the response.
Status Code: When I make the POST request, I’m getting a 403 Forbidden status code.
Request Details:
Method: POST
URL: https://url/ams/shared/api/security/login
Body:(json)
{
"password": "AdminPW",
"userName": "admin",
"organizationName": "Default"
}
version of kace: 13.2.182
-
Hi @jagriti, have you ensured that the 'Mobile Access' check box has been checked for the service user in kace? - Unsullied 3 months ago
-
Yes just enabled it, thanks for the suggestion. - jagriti 3 months ago
-
What are you using to send the API request? Potman or from an application? If an application, what programming language is used? - KevinG 3 months ago
-
Hey I am using postman and this is working fine.But now, when i am trying to get data using any url i am gettinh the error code 401(unauthorized), even after passing the jwt token in the headers. What should I do ? - jagriti 3 months ago
Answers (0)
Be the first to answer this question