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

Support passing cookie with token #281

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

vrutkovs
Copy link
Contributor

User session token (xoxc-...) requires a special cookie (d=xoxd-...) to be set for all requests. This PR adds support of setting a custom cookie to support such cookies.

See https://papermtn.co.uk/retrieving-and-using-slack-cookies-for-authentication/ for information, as xoxc-.. tokens are mysteriously not documented in official Slack docs.

@abdolence
Copy link
Owner

Hey,

I don't think it is mysterious. I think Slack devs didn't intent that external application can use user session tokens.

Anyway, personally I can't see harm to support this undocumented way to work with Slack, so let's merge it. I'll do small refactoring myself in that place to get rid of unwrap calls - I prefer not to have them in the source code.

Thanks

@abdolence abdolence merged commit 063152c into abdolence:master Jun 28, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants