mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-06 19:47:47 -05:00
OpenIdConnect Provider is not listed although configured #2286
Closed
opened 2026-03-22 14:00:54 -05:00 by GiteaMirror
·
15 comments
No Branch/Tag Specified
main
feat-v2-foundation
spike-huma-openapi3
claude/investigate-swagger3-support-nyyUa
feat-list-view-buckets
ci-mysql-8-test
codex/analyze-codebase-for-email-task-feature
feat-project-templates
csv-import-feature
claude/email-reply-comments-wpdcQ
fix-oidc-pkce-support
fix/overview-subtasks-expand
feat/bucket-select-task-detail
feat-soft-delete-projects
claude/review-bot-design-plan-cf5C3
claude/project-scoped-api-tokens-KTqR3
claude/explore-openclaw-integration-KQEzg
claude/project-scoped-api-tokens-yv5KS
fix-duplicate-close-button
feat-list-view-sorting
feat/official-vite-sentry-plugin
feat/highlight-overdue-tasks
feat/add-enter-key-form-submission-handling
feat/TipTap-nits
feat/update-caldavtimetotimestamp-parsing
feat-phosphor-icons
wip-plans
claude/investigate-issue-2173-llKme
fix-description-text-drag
feat-custom-keyboard-shortcuts
pr-1845-ci
codex/fix-drag-and-drop-behavior-inconsistency
copilot/add-clickable-labels-for-filtering
copilot/fix-issue-1786
playwright-migration
fix-kanban-repeating-wip
copilot/fix-1498
feature/replace-axios
codex/upgrade-to-tailwind-4.1.8-using-pnpm
codex/add-cypress-test-for-avatar-types
feature/biome
feature/oxc
codex/update-flexsearch-to-0.8.205
4r6ni9-codex/fix-deprecated-sass-@import-usage
codex/fix-deprecated-sass-@import-usage
codex/add-cypress-test-for-task-list-refresh-fix
codex/fix-quick-add-magic-not-adding-tasks
codex/fix-all-type-errors
codex/fix-mimetype-for-docs.json
feature/caldav-from-scratch
feature/gh-actions-hetzner
fix-ci
feat/new-logger
jyte-better-dev-config
feat/add-team-member-with-enter
fix/button-and-icon-types
fix/notifications-component-name-collision
feature/null-time
renovate/tailwindcss-4.x
feature/unplugin-vue-router
fix/deprecated-import
feature/zod-schema
renovate/golangci-golangci-lint-1.x
fix/tiptap-editor-reactive-destructuring
release/0.24
feat/improve-add-task
fix/saved-filter-search
feat/webp-and-avif-attachment-previews
feature/migrate-back-to-bulma
fix/sass-add-missing-list-import
feature/sticky-demo-bar
fix/gantt-view-switch
feature/typesense-position-join
feature/focus-visible
dependencies/golangci-lint
feature/better-filter-syntax
fix/tiptap-task-list
renovate/github.com-golang-jwt-jwt-v4-5.x
feature/hide-forbidden-related-tasks
renovate/golang-1.x
release/0.20
release/0.17
release/0.16
release/0.15
release/0.14
v2.3.0
v2.2.2
v2.2.1
v2.2.0
v2.1.0
v2.0.0
v1.1.0
v1.0.0
v1.0.0-rc4
v1.0.0-rc3
v1.0.0-rc2
v1.0.0-rc1
v1.0.0-rc0
v0.24.6
v0.24.5
v0.24.4
v0.24.3
v0.24.2
v0.24.1
v0.24.0
v0.23.0
v0.22.1
v0.22.0
0.21.0
v0.21.0
v0.20.4
v0.20.5
v0.20.3
v0.20.2
v0.20.1
v0.20.0
v0.19.2
v0.19.1
v0.19.0
vue3
v0.18.1
v0.18.0
v0.17.1
v0.17.0
v0.16.1
v0.16.0
v0.15.1
v0.15.0
v0.14.1
v0.14.0
v0.13.1
v0.13
v0.12
v0.11
v0.10
v0.9
v0.8
v0.7
v0.6
v0.5
v0.4
v0.3
v0.2
v0.1
Labels
Clear labels
area/api
area/attachments
area/auth
area/avatars
area/backup-restore
area/caldav
area/calendar-view
area/comments
area/config
area/database
area/desktop
area/docker
area/email
area/favorites
area/filters
area/frontend
area/gantt
area/i18n
area/import-export
area/internal-code
area/kanban
area/labels
area/list-view
area/mobile
area/notifications
area/permissions
area/projects
area/pwa
area/recurring-tasks
area/reminders
area/search
area/shortcuts
area/subtasks
area/sync
area/table-view
area/task-editor
area/task-metadata
area/task-relations
area/teams
area/theming
area/time-tracking
area/typesense
area/views
area/webhooks
bug
changes requested
concern/accessibility
concern/performance
concern/regression
concern/ux
confirmed
db/mysql
dependencies
enhancement
good first issue
help wanted
integration/inbound
integration/outbound
kind/bug
kind/feature
needs reproduction
pull-request
question
security
support
upstream issue
waiting for reply
wontfix
Mirrored from GitHub Pull Request
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/vikunja#2286
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
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?
Originally created by @f0sh on GitHub (Aug 21, 2025).
Description
I'm running Vikunja sucessfully behind traefik with local users. I am now trying to use oidc to authenticate the users against Authelia. I followed the documentation regarding the oidc setup from vikunja docs and authelias docs.
I am running vikunja as a docker container with the following environment variables:
My configuration there is as follows:
authelia/configuration.ymlvikunja/config.ymlI am using the latest unstable docker image 802ef8e745a4 and therefore adjusted the config to the new format.
However if I open vikunja
/api/v1/infoit returns an empty openid_connect provider arrayThe log doesn't say anything
I tried already
None of them works nor produces any error in the log, even though debuggin is enabled.
Authelia seems to be configured, correctly, as it is working together with other clients.
Is this a bug or have I overseen something?
Vikunja Version
v1.0.0-rc1-19-8ca24877
Browser and version
Edge 139.0.3405.86
Can you reproduce the bug on the Vikunja demo site?
No
Screenshots
@TimB87 commented on GitHub (Aug 21, 2025):
Hey!
Same problem and I was able to fix it, go-vikunja/website#180 certainly hinted me to the right direction.
I hope this helps!
@f0sh commented on GitHub (Aug 21, 2025):
Hey @TimB87,
thanks for your reply.
As mentioned, I already was playing around with the syntax and I think the current setup (unstable version, new syntax) should be now the correct way to do.
As Authelia is working with other services, I think my Authelia configuration should be okay. Needless to say, that I double checked the authelia docs regarding the specific configuration for Vikunja and it should be like described in the docs.
This is interesting. What exactly do you mean by you didn't set a public URL?
Edit:
Indeed, changing the
redirect_urlto add the the provider name at the end makes vikunja show the OIDC button. 👍After this change, everything works like a charm. Thanks a lot @TimB87 for the hint.
Edit2:
I was just trying to create a PR for the change of the docs, however I noticed this is actually not a sustainable solution, if more than one OIDC provider is used.
As the directive
redirecturlis within theopenid:scope and not within the<provider-name>:scope, basically only one provider can be used, as the others won't be working then, if theredirecturlparameter is missing. Alsoredirecturlcan only take one value. Or am I missing something?@nebula-it commented on GitHub (Aug 22, 2025):
@f0sh For the multiple redirect urls I beleive you can use
redirect_uris:as detailed hereAlso, do you mind sharing your full config, as per above discussion I made sure the
redirect_urlends with name of provider, but it still does not show the OIDC login button.This is what I had previously and it worked fine, until I updated to v1.0.0 (Notice the difference in provider.name)
@nebula-it commented on GitHub (Aug 22, 2025):
^ got it fixed, the provider setup has changed from an array to keys for each provider like:
instead of
@chrislea commented on GitHub (Aug 24, 2025):
This is driving me rather nuts. I wiped everything and did a completely fresh install. Trying to get it working with Authentik. The relevant part of my
config.ymllooks like:And the redirect in Authentik is set to a Regex as
https://vikunja.uri/auth/openid/authentik.I get the authentik login button, and it goes through the authorization process, but then I end up with an "unauthorized" error at
https://vikunja.url/auth/openid/authentik?code=XXXXXXXXXXXXXXXXXXXXXX&state=XXXXXXXXNot really sure what else to try at this point, but if anybody has any ideas I'd love to hear them.
@nebula-it commented on GitHub (Aug 24, 2025):
Try
authurl: https://authentik.url/and just for testing try withoutlogouturlas well@chrislea commented on GitHub (Aug 24, 2025):
Thanks for the suggestion @nebula-it , but unfortunately, no luck.
If I just use
authurl: https://authenik.url/, then the provider doesn't get set up. I don't see the OIDC login button, and/api/v1/infoshows that the provider info is all blank.The presence of
logouturldoesn't seem to matter either way.@KevinSJ commented on GitHub (Aug 24, 2025):
I was able to fix the issue with Authelia by changing the
providersin the config file to the new syntax and removing the trailing slash of the redirecturl. Here's my config after the change:We probably need to mention this in the migration doc somewhere once 1.0 becomes stable.
@chrislea commented on GitHub (Aug 24, 2025):
@KevinSJ thanks for the idea. Tried it but still no love. If I remove the provider name from the redirect url then Authentik gives an error saying that the redirect url is wrong. So it doesn't even get through the authorization. It appears to be Vikunja where the error is happening, From the logs:
So it looks like there's a POST request to
/api/v1/auth/openid/authentik/callbackthat returns a 401 response code. Very frustrating.@chris2deuce commented on GitHub (Aug 24, 2025):
I've the same trouble with Authelia OIDC setup Vikunja version v1.0.0-rc1.
After OIDC login I get the Unauthorized message and in the logs I see the same error 401 messages... :-(
my vikunja config.yml:
my authelia configuration.yml:
@danyer commented on GitHub (Aug 25, 2025):
@chrislea @chris2deuce regarding the Unauthorized message, I had it too, after making Authelia work again.
The solution is to add the following to your Vikunja configuration:
Before 1.0 it was not needed, now it seems it is.
@chrislea commented on GitHub (Aug 25, 2025):
@danyer adding
publicurlworked, thank you very much!@kolaente commented on GitHub (Aug 29, 2025):
This seems solved? What is left to close this issue?
@TimB87 commented on GitHub (Aug 29, 2025):
@kolaente imo, the need for a defined
publicurlis new and should be mentioned in the docs.Since the updated syntax is already highlighted in the docs, this should be it.
@kolaente commented on GitHub (Aug 29, 2025):
Yeah it should be mentioned in the docs. There's an update pending for this and a few other changes.
https://github.com/go-vikunja/vikunja/pull/1351 implements a check directly in Vikunja which should make this requirement a lot more clear as well.
I'll close this, please ping if you feel like it should be reopened.