-
Notifications
You must be signed in to change notification settings - Fork 0
Fix desktop app OAuth - use window.open() to trigger external browser #14
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
base: main
Are you sure you want to change the base?
Changes from 14 commits
f042c09
4273540
cec5926
f5dea14
b1d1350
b5c9b33
7ce164e
9803693
fa838c5
319f1c1
808e7d0
35fdcfb
25e19f3
d0071eb
4a75550
40a04c2
bf7a33e
7c3776c
8f2ca6b
3089443
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -127,9 +127,10 @@ ensure_plugin_installed() { | |
| return 0 | ||
| fi | ||
|
|
||
| if ! run_mmctl plugin list | grep -q "${PLUGIN_ID}"; then | ||
| log "Uploading plugin ${PLUGIN_ID} from ${PLUGIN_CONTAINER_PATH} (force replace)." | ||
| run_mmctl plugin add --force "${PLUGIN_CONTAINER_PATH}" >/dev/null | ||
| log "Uploading plugin ${PLUGIN_ID} from ${PLUGIN_CONTAINER_PATH} (force replace)." | ||
| if ! run_mmctl plugin add --force "${PLUGIN_CONTAINER_PATH}" >/dev/null; then | ||
| log "Failed to upload plugin ${PLUGIN_ID}." >&2 | ||
| exit 1 | ||
| fi | ||
|
Comment on lines
+134
to
138
|
||
|
|
||
| log "Enabling plugin ${PLUGIN_ID}." | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,12 +4,14 @@ go 1.22.0 | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| toolchain go1.24.2 | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| require github.com/mattermost/mattermost/server/public v0.1.10 | ||||||||||||||||||||||
| require ( | ||||||||||||||||||||||
| github.com/coreos/go-oidc/v3 v3.9.0 | ||||||||||||||||||||||
| github.com/mattermost/mattermost/server/public v0.1.10 | ||||||||||||||||||||||
| ) | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| require ( | ||||||||||||||||||||||
|
Comment on lines
+8
to
12
|
||||||||||||||||||||||
| github.com/coreos/go-oidc/v3 v3.9.0 | |
| github.com/mattermost/mattermost/server/public v0.1.10 | |
| ) | |
| require ( | |
| github.com/mattermost/mattermost/server/public v0.1.10 | |
| ) | |
| require ( | |
| github.com/coreos/go-oidc/v3 v3.9.0 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
$native_login_suffixis concatenated directly into the redirect URL without URL encoding. If a User-Agent contains special characters that match the regex but also include characters like&,?, or#, it could break the URL structure.While the current implementation only appends the literal string "&isMobile=true", consider using nginx's $arg_* or ensuring any future modifications to this logic properly encode values. The current implementation is safe but fragile to changes.
For improved robustness, document that this value must be a literal string and should not be dynamically constructed from user input.