Skip to content

login: Native login flow w/ recaptcha webview - #89

Merged
highesttt merged 5 commits into
mainfrom
highest/plat-38212
Aug 6, 2026
Merged

login: Native login flow w/ recaptcha webview#89
highesttt merged 5 commits into
mainfrom
highest/plat-38212

Conversation

@highesttt

Copy link
Copy Markdown
Contributor

Checklist

@highesttt
highesttt requested a review from Fizzadar August 1, 2026 01:19

var _ bridgev2.LoginProcessCookies = (*SlackTokenLogin)(nil)

const ExtractSlackTokenJS = `

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the changes in this file from this point onwards seem to be wrong

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, not sure what's going on here we shouldn't be messing with the existing cookies/webview flow at all 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it in as an unrelated change, did not mean to push it 😬

Comment thread pkg/connector/login-cookie.go Outdated
}, {
Name: "Auth token & cookie",
Description: "Log in with an auth token (and a cookie, if the token is from a browser)",
Description: "Advanced: sign in with an existing auth token and cookie token",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Description: "Advanced: sign in with an existing auth token and cookie token",
Description: "Log in with an auth token (and a cookie, if the token is from a browser)",

Comment thread pkg/connector/login-email-2fa.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look like it should be a separate file. However, the login API stuff (unrelated to bridgev2) and the bridgev2 login interface should be 2 separate files. The login API stuff might even belong in slackgo rather than here, though it's fine here too if it's cleanly separated

Comment thread pkg/connector/login-email.go Outdated
@@ -0,0 +1,960 @@
// mautrix-slack - A Matrix-Slack puppeting bridge.
// Copyright (C) 2024 Tulir Asokan

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is supposed to be the current year and your name


var _ bridgev2.LoginProcessCookies = (*SlackTokenLogin)(nil)

const ExtractSlackTokenJS = `

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, not sure what's going on here we shouldn't be messing with the existing cookies/webview flow at all 🤔

Comment thread pkg/connector/login-email.go Outdated
Comment thread pkg/connector/login-email.go Outdated
@highesttt
highesttt requested review from Fizzadar and tulir August 3, 2026 16:18
@highesttt
highesttt merged commit 49b45b2 into main Aug 6, 2026
11 checks passed
@highesttt
highesttt deleted the highest/plat-38212 branch August 6, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants