Bug - Issue with OIDC (Pocket-ID) Login on frontend of Godoxy #79

Closed
opened 2025-12-29 09:22:42 +01:00 by adam · 3 comments
Owner

Originally created by @simon-dmsn on GitHub (May 26, 2025).

Hey !
Thank you for all your work :)

Since few updates, I now have troubles to connect on the frontend of Godoxy. I keep getting this error :

Image

Image

I tried to logout through the button on the top right corner but doesn't work either afterwards
.
One way to successfully login is to login through the middleware on another app (Dozzle for example) and when I go back to Godoxy I am connected. So it seems that there is a problem on redirecting the login ?
It worked perfectly before, life few updates back !
I followed again the tutorial on your wiki in case something had changed, but It didn't help.

I'm totally fine with the way I log on now but I just put the issue here if it is something you want or can solve !

Have a nice day !

Simon

Originally created by @simon-dmsn on GitHub (May 26, 2025). Hey ! Thank you for all your work :) Since few updates, I now have troubles to connect on the frontend of Godoxy. I keep getting this error : ![Image](https://github.com/user-attachments/assets/5fb57265-40ba-4520-90dc-61b62aff30c5) ![Image](https://github.com/user-attachments/assets/aace751b-c3e1-4d4e-b266-24673954da0c) I tried to logout through the button on the top right corner but doesn't work either afterwards . One way to successfully login is to login through the middleware on another app (Dozzle for example) and when I go back to Godoxy I am connected. So it seems that there is a problem on redirecting the login ? It worked perfectly before, life few updates back ! I followed again the tutorial on your wiki in case something had changed, but It didn't help. I'm totally fine with the way I log on now but I just put the issue here if it is something you want or can solve ! Have a nice day ! Simon
adam closed this issue 2025-12-29 09:22:42 +01:00
Author
Owner

@yusing commented on GitHub (May 26, 2025):

I've changed the redirect mechaism few versions ago, on the frontend. Now you have to set header Access-Control-Allow-Origin to at least *.yourdomain.com (as well as the IdP domain if it's outside of GoDoxy) according to the web security standard. Check out config.example.yml for a reference.

An alternative way is to add the OIDC middleware to the frontend.

Will look for a better way to fix this.

@yusing commented on GitHub (May 26, 2025): I've changed the redirect mechaism few versions ago, on the frontend. Now you have to set header `Access-Control-Allow-Origin` to at least `*.yourdomain.com` (as well as the IdP domain if it's outside of GoDoxy) according to the web security standard. Check out [config.example.yml](https://github.com/yusing/godoxy/blob/main/config.example.yml) for a reference. An alternative way is to add the OIDC middleware to the frontend. Will look for a better way to fix this.
Author
Owner

@yusing commented on GitHub (May 29, 2025):

I've refined the redirect mechanism, please try it out with v0.13.6.

@yusing commented on GitHub (May 29, 2025): I've refined the redirect mechanism, please try it out with v0.13.6.
Author
Owner

@simon-dmsn commented on GitHub (Jun 1, 2025):

Works like a charm !

Thank you for your reactivity and your help :)

@simon-dmsn commented on GitHub (Jun 1, 2025): Works like a charm ! Thank you for your reactivity and your help :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/godoxy#79