The issue i'm facing is related to accesing the login functionality through the REST API. Despiste providing correct credentials and attempting to access the loging endpoint via the API, I'm consistently receiving an error response that credentials are invalid. I have explored various potential solutions, including verifying the correctness of the credentials ofc, inspecting the request parameters, and ensuring that the request headers, such as the CSRF token are included properly. Despite these efforts trying to find a way to get a success-response i'm not able to authenticate via the API. I was able to do by payload. Also, i was able to do other kind of requests using my bearer token + parameters ( for example get request to /api1/v1/user )
To reproduce
I'm getting my access token making the proper request to /oauth/issueToken and using in the body the client_id, client_secret,grant_type, username and password. After it , I use this access_token as bearer auth and trying to make a POST request to /api/v1/login with a json body which contains username,password like parameters like doc says without any sucessfull.
Expected behavior
I just want to know if there's any kind of parameter that is missing on the api documentation which allows me do user login
OrangeHRM version
4.2.0.1
Environment details
Describe the bug
The issue i'm facing is related to accesing the login functionality through the REST API. Despiste providing correct credentials and attempting to access the loging endpoint via the API, I'm consistently receiving an error response that credentials are invalid. I have explored various potential solutions, including verifying the correctness of the credentials ofc, inspecting the request parameters, and ensuring that the request headers, such as the CSRF token are included properly. Despite these efforts trying to find a way to get a success-response i'm not able to authenticate via the API. I was able to do by payload. Also, i was able to do other kind of requests using my bearer token + parameters ( for example get request to /api1/v1/user )
To reproduce
I'm getting my access token making the proper request to /oauth/issueToken and using in the body the client_id, client_secret,grant_type, username and password. After it , I use this access_token as bearer auth and trying to make a POST request to /api/v1/login with a json body which contains username,password like parameters like doc says without any sucessfull.
Expected behavior
I just want to know if there's any kind of parameter that is missing on the api documentation which allows me do user login
Relevant log output
No response