Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Hello! I'm trying to set up casibase purely on my local machine, just to try it out. I was happy with how simple it seemed to get both casdoor and casibase up and running, but then when I go to log in with my new user, the login seems to work in casdoor, but when I get bounced back to casibase, I'm still not logged in. In the log for casdoor, it seems to show no error at all, but in the log for casibase, I do see a 403 error on /api/signin, presumably from casdoor?

2026/01/16 17:18:34.201 [D] [server.go:3301]  |      127.0.0.1| 200 |     199.02µs| nomatch| GET      /callback
2026/01/16 17:18:34.994 [D] [server.go:3301]  |      127.0.0.1| 200 |    930.029µs|   match| GET      /api/get-forms   r:/api/get-forms
2026/01/16 17:18:34.994 [D] [server.go:3301]  |      127.0.0.1| 200 |    997.109µs|   match| GET      /api/get-account   r:/api/get-account
2026/01/16 17:18:34.995 [D] [server.go:3301]  |      127.0.0.1| 200 |   1.418309ms|   match| GET      /api/get-store   r:/api/get-store
2026/01/16 17:18:35.031 [D] [server.go:3301]  |      127.0.0.1| 403 |   3.035507ms| nomatch| POST     /api/signin
2026/01/16 17:18:35.141 [D] [server.go:3301]  |      127.0.0.1| 200 |    711.449µs|   match| GET      /api/get-store-names   r:/api/get-store-names

I've made sure clientId/clientSecret/casdoorOrganization/casdoorApplication all match

4views
3users
1 minread

@marrmist 1. Clear your cookies or switch to an incognito/private browsing window.
2. Turn off the VPN.
3. If you’re using Docker, check whether the two containers have the same timezone settings.

I tried in a different browser that hadn't seen casibase or casdoor and still got the same issue. (not using a vpn or docker... I'm running both casdoor and casibase in another user account together, and using sqlite for both)

should these three errors when casibase is run worry me?

2026/01/23 03:20:23.695 [E] [init.go:30]  Failed to add template code-server: constraint failed: UNIQUE constraint failed: template.owner, template.name (1555)
2026/01/23 03:20:23.695 [E] [init.go:30]  Failed to add template kuboard: constraint failed: UNIQUE constraint failed: template.owner, template.name (1555)
2026/01/23 03:20:23.695 [E] [init.go:30]  Failed to add template pdf2zh: constraint failed: UNIQUE constraint failed: template.owner, template.name (1555)

if I do log into casdoor, then when I try to log into casibase and get redirected to casdoor, there is a "continue with existing account" option. But clicking that still ultimately leaves me not logged into casibase, and generates the same 403 forbidden error in the casibase log

This has nothing to do with the error report.

The only point where Casibase would return a 403 error is during the CORS check. Therefore, it's highly likely that the request was blocked here. Please verify whether the Casibase Redirect URLs have been added to your Casdoor application. If you confirm this is correct, you can provide the encrypted information from the Casibase configuration file.

This error occurs due to database differences, causing the code to fail to catch this false positive “primary key conflict” alert. This will not cause any issues.

whoops, I didn't know about that step. Adding casibase redirect URLs to casdoor. That sounds like the likely issue.

okay, thanks for confirming that!

yep, that was it! My redirect url (probably just the default entry) had the wrong port. Thanks!

1 / 6
Jan 17