Create user with OpenID #1170
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1170
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Dear,
I would like the possibility to create new users with OpenID if registration is enabled.
It is not possible at this moment in Docker Unstable release.
Kind regards,
Sander Lambrechts
What do you mean by "create new users"? With openID, the users are created on the fly when logging in with openID if they don't already exist in Vikunja's database.
Well, if that is the case. In the unstable version i cant get openID to work.
It keeps telling "Could not authenticate against third party.
Using same setup as my stable only other subdomain and tried adding 1 more redirect url in Authelia.
In the logs i can find:
The redirect uri i configured in Authelia:
redirect_uris:
- https://betaak.domain.nl/auth/openid/homelab
- https://betaak.domain.nl/auth/openid/
Vikunja config:
redirecturl: https://betaak.domain.nl/auth/openid/
providers:
- name: homelab
I dont know what i am doing wrong...
Did you set the name of the authelia provider to
homelab
in Vikunja? The redirect URL needs to beYOURDOMAIN/auth/openid/KEY
- the key is derived from the name you configured in vikunja, check/api/v1/info
for it.If you take a look at the URL in authelia when getting redirected to login there, what redirect URL does it contain?
The /api/v1/info shows this:
But i will check with /key behind the redirect url.
Did you configure the redirect URL in Vikunjas openid settings? Because the one on your snippet looks wrong, it should include the full frontend URL with domain and protocol.
Did you configure the frontend URL?
This is how i set it up now. WIth key behind the url and still not works, before i had the url with /auth/openid/
I see the other question now, this is my frontendurl :
frontendurl: "https://betaak.domain.nl"
Also not related to this (can create seperate issue for this):
If i put keyvalue in the config instead of memory, it will generate this error. Setting all the values where keyvalue is used to say memory, it is working (and starting the api)
With this setting it doenst even start the api container.
The auth url for the provider in Vikunja should be either
https://betaak.domain.nl/
orhttps://betaak.domain.nl/auth/openid/
depending on your openid provider.The redirect url configured in Vikunja's config should be
https://betaak.domain.nl/auth/openid/
- Since you configured your frontend url the easiest would be to leave this setting empty and it will set it automatically.Now, in your openID provider your allowed redirect url should be
https://betaak.domain.nl/auth/openid/homelab/
.That looks like a different problem, please go ahead and create an issue.
As it turns out, there was indeed a problem in how the redirect url was set in config. This should be fixed with
f5ebada913
, could you check with the latest unstable version once the CI released the new unstable version in ~30 min?Alright, will check it now. Thank you.
Great, it is fixed now. Got it working by using this config:
In my openID provider my allowed redirect url is now (without it wouldn't work):
https://betaak.domain.nl/auth/openid/homelab/
And the redirecturl in Vikunja config is:
https://betaak.domain.nl/auth/openid/
Great it works now!