Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect.sid Cookie Invalid on Trudesk API #708

Open
edsamodra opened this issue Feb 3, 2025 · 0 comments
Open

connect.sid Cookie Invalid on Trudesk API #708

edsamodra opened this issue Feb 3, 2025 · 0 comments

Comments

@edsamodra
Copy link

edsamodra commented Feb 3, 2025

I am having trouble obtaining and using the connect.sid cookie in Trudesk. Without this cookie, I am unable to access the API v2.

What I Have Tried:

  1. I sent a request to POST /api/v2/login with valid credentials.
  2. The response headers included a connect.sid cookie.
  3. However, the connect.sid cookie appears to be invalid, as I still cannot authenticate and access API v2 using it. But, If I just copy and paste value of coonect.sid from the browser that logged into Trudesk, it works.
  4. I also tried hitting the following endpoints, but none of them returned a valid connect.sid:
    • GET /api/v2/login
    • GET /api/v2/viewdata

Expected Behavior:

  • A valid connect.sid cookie should be returned upon successful login.
  • The cookie should allow authentication for API v2 requests.

Actual Behavior:

  • The connect.sid cookie retrieved from POST /login is invalid, preventing API access.

I would appreciate any guidance on why this is happening and how to obtain a working session cookie. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant