OIDC access help #1216
Replies: 6 comments 10 replies
|
Hi Stéphane! No worries, this is not that easy for a lot of people, even for me. :) The redirect URL you need to register in tsidp is:
where YOUR_POZNOTE_HOST is exactly the hostname (and port, if any) you type in the browser to open Poznote. Poznote auto-generates this value from the request, so in most setups you can leave the "Redirect URI" override field in Settings > Admin Tools > OIDC / SSO empty. Two things to check if you still get a redirect error:
If it still fails, paste the exact error message from tsidp (it usually says which redirect_uri it received) and I can take a closer look. |
|
Okay, I set the redirect URL and studied the logs of tsidp. The authentication flow shows no errors. However, (and this is due to my lack of understanding the ins and outs of OIDC) the token issued is actually my github username. I use my github account to log into Tailscale. I guess Poznote doesn't know what to do with my github user name and therefore login fails with:
I tried to add a user with my github name to PN but that doesn't work either. |
|
I dug into this on the code side. The "Allowed users" list is matched against three claims from the ID token tsidp sends:
Two things to try, in order:
If it still fails with both fields empty, paste the new Poznote log line and we'll dig further. Side note: in an upcoming patch I will improve the logs so that when a login is rejected, Poznote logs which check failed (groups or allowlist) and the actual claim values it received. That way you would see the exact value to put in "Allowed users" directly in the log, without needing these workarounds. |
|
I pushed a patch 6.56.3-beta with more logging. Could you try it please? |
|
Removed all the entries. After changing my additionally setup PN user account name from Stephane-30@github to Stephane-30 the login was successful. However, that's not the PN account I want to use. Is there a way to automatically log in to my primary PN user account (the one I use on a daily basis). I don't really want to rename it to Stephane-30. |

Uh oh!
There was an error while loading. Please reload this page.
Probably easy to answer, but I'm stuck at the moment. I'm trying to run my own OIDC server (Tailscale tsidp). So far so good, and it's running. I have created ID and Secret for poznote and added it to env.
When trying to authenticate in Poznote login it throws an redirect error.
When I created the ID I also needed to add a redirect URL and in PN is an option to ovederwrite the redirect URL. What actually is the correct URL?
Sorry if this seems obvious.
All reactions