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
🐛 Bug Report: Microsoft OAuth Error #322
Comments
I'm getting the same error with github, and with discord i get the error that says "Can't get email address from this Discord account." I'm not sure what i'm doing wrong. |
Can you share the server logs? The Discord bug is related to #302 |
This is the Log when I tried the Microsoft Login:
|
This is the error I got when I tried Github:
|
Here is the full log i download: |
Having the same issue. Here is the output of my last attempt at using microsoft authentication: Logs: |
@zz5840 Do you have an idea why this could happen? |
@stonith404 I'm still finding the cause of this error:
Seems all OAuth errors are caused by this, but I don't know why user could be undefined. pingvin-share/backend/src/user/user.controller.ts Lines 28 to 34 in 5503e7a
|
@stonith404 Oh sorry, I think I found the cause. I was so remiss that I wrote a wrong request URL, and I even don't know how it passed my test. |
@SecureCPU @chrisburkey Issues in GitHub and Discord have been fixed, please test it with dev image. And could you tell me which url this error occurs at?
|
@zz5840 Thank you for your help! The dev image is ready. |
@chrisburkey @SecureCPU I have updated the docs of Microsoft authentication, please check it and confirm your config is correct. |
Its still not working, Can anyone send me screen shots of what its supposed to look like? |
@SecureCPU Are you using stable image or dev image? |
I'm using the stable image |
and its behind NPM proxy and cloudflare proxy, but doesn't have any rules or blocks applied |
should i try the Dev image? |
I'm trying the Dev image now. |
Sorry, but dev image may not solve your issue too. You can try to create a personal Microsoft accounts only app in Microsoft Entra and use consumer for tenant. |
But the Dev version fixed the github and discord for me. that worked perfectly. Thank you so much!! |
Ok, I have update the code to display the detail error when authentication failed, please try it again after @stonith404 updating the dev image. |
this is what showed on the website once i authenticated my Microsoft account. |
@SecureCPU Ok, the dev image has been updated, please test the dev image again. |
k. updating now |
On which url this error shows? |
/api/oauth/callback/microsoft |
This is the full URL when I get that error (Link can only be viewed once. |
@SecureCPU It still shows |
I didn't see that error, just the one I mentioned before. But Microsoft still doesn't work. |
After you get this URL, please use curl to request the token and check outputs. You can send it to my email i#qingfu.dev if it contains sensitive information.
Don't forget to replace the variable in URL. The code is from URL you get from last step, it's a bit long, please be careful with the boundary. BTW, please re-open the PR. |
I found the issue... So I entered the wrong value for the Client Secret, I used the Client Secret ID instead of the Client Secret Value. Once I figured that out, I reissued the Client Secret and used the value instead of the ID and it worked like a charm. Sorry for the trouble, ended up being user error. feel really stupid i missed the 2 up on this application. |
Had the same issue on Microsoft for another reason. Simple solution: In Pingvin-Settings I setted up my domain with / at the end. This leaded to //api which fails. Just make sure to end your Domain in Settings to TLD without / at the end. |
👟 Reproduction steps
Try to login using a Microsoft account
👍 Expected behavior
Should login using the Microsoft account
👎 Actual Behavior
I get the following error: {"statusCode":500,"message":"Internal server error"}
I have set the Web Redirect URIs in the Microsoft Application as: "https://example.com/api/oauth/callback/microsoft"
🌐 Browser
Chrome
The text was updated successfully, but these errors were encountered: