-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
GitHub authorization has changed #1755
Comments
I guess it's the same as #1724. |
Same problem here, I granted access to Github so I could sign in from StackEdit and it worked fine, but when I try to add a workspace from Github I get an "HTTP Error 400" sign and this: |
Yeah, that's the exact error I get too. |
Getting the same exact error, bumping. |
For the time being, I developed a workaround. I know there already is #1724 that fixes the issue, but I wanted to keep using StackEdit whilst the request is not yet merged. Once you are on the screen asking you to "Grant access to your private repositories," open the developer console and paste the following lines. window.XMLHttpRequest = class MyXMLHttpRequest extends window.XMLHttpRequest {
open(...args){
if(args[1].startsWith("https://api.github.com/user?access_token=")) {
// apply fix as described by github
// https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/#changes-to-make
const segments = args[1].split("?");
args[1] = segments[0]; // remove query params from url
const token = segments[1].split("=")[1]; // save the token
const ret = super.open(...args);
this.setRequestHeader("Authorization", `token ${token}`); // set required header
return ret;
}
else {
return super.open(...args);
}
}
} This overrides Once the repository is connected, you can remove the overridden |
Thank you @mogoe1! |
Thank you! Ran into this problem this morning... |
@benweet Can confirm issue still persists as of today |
Yeah, just right now |
@mogoe1 thank you!!! |
big up @mogoe1 |
Heads up to other recently-frustrated StackEdit users- |
also had the impression of the project being unmaintained now... meanwhile I switched to Obsidian, which i really love.... Migration is quite easy. |
This is still an ongoing issue.
|
Thanx a lot. I'm admirative for persons like you who understand something about front end and security ^^ |
|
Thank you - great recommendation! :) |
Thank you @snowsum. This has helped me today (01.02.2023) |
Same here ... Above code snippet worked for me (16.02.2023). I do afraid something happened to this developer. Hope he is alive. |
Same here, JS snippet worked for me (16.03.2023) |
I still get the error despite the workaround. Any chances of fixing the issue for good by merging #1724? |
Thank you @mogoe1! |
It is clear that it won't be fixed, the maintainer basically left this project. I switched to using Github itself for note taking, it has great editor features, even on mobile. I tried free tier of some paid software as Obsidian/Notion, but for me they did not fit. In PM I am open for similar free software recommendations. |
Should be fixed with v5.15.0. |
did you end up forking it.? |
Hello,
I don't know if you are aware but GitHub has changed its authentication method, on May 5, 2021: see here and here.
In fact, as I try to add my Github repo, StackEdit receives this error:
Anyway...
GitLab integration is not working, GitHub is not working either now.
What should we do?
I hope in a quick fix, thank you very much.
The text was updated successfully, but these errors were encountered: