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

extract cookie as well as token for slack auth #21

Merged
merged 1 commit into from
Jul 17, 2021

Conversation

jackellenberger
Copy link
Owner

Why

Welp, Slack is cracking down. The days of using tokens for whatever the heck you want are over, now we need cookies too. I used to love cookies, ya know?

Anyway, as part of the response to jackellenberger/emojme#60, we need an easy way to extract both a slack token and its cooperative cookie, which is wisely unfortunately, HttpOnly. This means we can't just grab it in javascript, you need a them on the inside... a them like... google chrome. So here this extension is, requesting more permissions to do more seemingly nefarious but really quite silly things.

What

The actual change here (in addition to adding cookies permissions, is to update the Get Slack Token button to be a Get Slack Token and Cookie button. Clicking it will return (and copy to your clipboard) a jsonblob containing the slack subdomain, token, and cookie.

What's next

Update emojme to accept these auth blobs so emoji shenanigans remains a bada bing bada boom type operation, nice and easy. :promoves:

@jackellenberger jackellenberger merged commit 1444fec into master Jul 17, 2021
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.

1 participant