thomiceli / opengist

Self-hosted pastebin powered by Git, open-source alternative to Github Gist.
https://opengist.io
GNU Affero General Public License v3.0
1.88k stars 100 forks source link

Authentik OAuth error(s) #303

Open farginnoob opened 4 months ago

farginnoob commented 4 months ago

Attempting to set up Authentik OAuth. I had all the proper data setup on docker config and in Authentik. However, it appears at least 1, but may be 2 separate issues prevented it from working immediately:

  1. Disabling signup caused the first time login to fail;

AND/OR...

  1. Enabling signup but trying to login for the first time with a username in Authentik the same as an existing user in Opengist prevented logging in.

I had to create a new user in Authentik (that didn't already exist in Opengist) to test, which worked and I was able to login successfully.

This happens when trying to log in with an existing username

    Also (probably unrelated) when I open an incognito window and point it to my gist domain, I get the site showing up extremely zoomed in (but I haven't adjusted the zoom at all). Refreshing the page fixes it, though sometimes if the page is fine, refreshing breaks it in this manner 🤷

First open site on incognito window
crunchiersa commented 3 months ago

@farginnoob: I'm using opengist in a docker and had the same problem with the zoom when configuring openid-connect via config-file. When using the environment variables I don't seem to have any problem with "zooming"...

As for an existing user "blocking" an openid-user, there is a button to link an existing user with your openid-user in the user settings. Just automatically linking an existing user with an openid-user only based on the username would pose a bit of a security issue... I believe the way to enable linking an existing account to a openid-account is the usual way to work around this problem. HTH