discord-oidc-worker icon indicating copy to clipboard operation
discord-oidc-worker copied to clipboard

Error Failed to get your identity

Open YueMiyuki opened this issue 1 year ago • 18 comments

image

YueMiyuki avatar Feb 28 '24 01:02 YueMiyuki

Screenshot 2024-03-24 at 11 57 19 AM I had a similar error and I have no idea to fix it...

kms0219kms avatar Mar 24 '24 04:03 kms0219kms

Still doesnt work... I made sure again that the secret is correct...

Any fix?

YueMiyuki avatar May 02 '24 13:05 YueMiyuki

I've fixed this issue by resetting the client secret. Can you try this?

kms0219kms avatar May 02 '24 14:05 kms0219kms

Tried, still no luck...

YueMiyuki avatar Jun 09 '24 01:06 YueMiyuki

@YueMiyuki, Can you try with https://github.com/waktaplay/discord-oidc-worker this? I recently forked this repository and completely rewrittened to h3.

kms0219kms avatar Sep 22 '24 11:09 kms0219kms

Thanks so much for the stars! I just released a new feature (role data cache + new scope (which already tried to add on #4)) that includes a bug fix that could be causing the issue you're experiencing. (I had the same bug as you a few days ago, so I'm in the process of rewriting everything in typescript with h3.)

kms0219kms avatar Sep 22 '24 13:09 kms0219kms

Do you know what caused/causes this? In my usage and others I've seen use my original Worker, I've not seen this be an issue so curious where the "bug" is

Erisa avatar Sep 22 '24 13:09 Erisa

Do you know what caused/causes this? In my usage and others I've seen use my original Worker, I've not seen this be an issue so curious where the "bug" is

I couldn't figure this out either. It failed because it only returned 400 or 500 without any errors or logs, and Cloudflare says it failed because the worker returned a status other than 200. But I thought it was an unknown and incorrect behavior, like a conflict with another code, so I rewrote everything.

After the rewrite, I tried to prevent the wrong behavior like a conflict as much as possible by applying Clean Architecture and clearly separating all code. Since the problem is not happening now, I just suggested that try using my fork and see if it is the same.

kms0219kms avatar Sep 22 '24 15:09 kms0219kms

Okay thanks for sharing anyway, it could have been due to the code changes or due to just setting up the config again from scratch.

Erisa avatar Sep 22 '24 18:09 Erisa

Yes, I agree. Since we applied Clean Architecture, we can add more detailed and accurate logs. If the error situation is reproduced, I will try to print the log again.

@YueMiyuki, if you get the same error, please let me know. I'll try to get some logs.

kms0219kms avatar Sep 23 '24 10:09 kms0219kms