mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-03 00:46:57 -05:00
Error openid provider: 404 Not Found with azure active directory #90
Labels
No labels
area/api
area/caldav
area/filters
area/frontend
area/gantt
area/internal-code
area/typesense
bug
changes requested
confirmed
dependencies
enhancement
good first issue
help wanted
kind/bug
kind/feature
needs reproduction
question
security
support
upstream issue
waiting for reply
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vikunja-go-vikunja#90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @fgionghi on GitHub (Sep 21, 2022).
Hi,
while trying to use azure as openid provider I'm getting the following error:
2022-09-21T09:29:00.599925016Z: ERROR ▶ openid/GetAllProviders 093 Error while getting openid provider azure: 404 Not FoundMy vikunja config file is:
The
authurlis what I found on azure in theOverview > Endpoints > OAuth 2.0 authorization endpoint (v2)section, and it has to be right because it is the same for every apps in my tenant (and I have other apps with that endpoint that are working). I also tried oauth v1 version.The
clientidis what azure calledApplication (client) idin the overview section.For the
clientsecretI firstly create a new client secret in theCertificates & secretssection then I tried bot the secretValueand theSecret ID.On the web page I don't see any error or any attempts to redirect to the oauth auth url.
Since the error is not even find the provider I don't mention here
redirect URIvalues. I think the error should be on theendpointorclientidvalues.Anyone has ever used azure AD as openid provider? Any suggestion? Thanks.
@kolaente commented on GitHub (Sep 21, 2022):
Vikunja uses the
authurlto figure out all openid endpoints it needs. Therefore the endpoint should support a/.well-known/openid-configurationsub url.For example, Gitlab provides these infos at
https://gitlab.com/.well-known/openid-configuration- when setting up Vikunja to authenticate with Gitlab theauthurlshould be justhttps://gitlab.comand Vikunja will figure out the rest.@fgionghi commented on GitHub (Sep 22, 2022):
Ok, now I got another error. Before of that: isn't it a little ambiguous to call
authurlwhat it's actually is theopenid configuration issuer? I'm totally not an expert of oauth and openid but it seems those terms have specific meanings.However now I can press the
Login with authentikbutton, I get redirect to the auth page, I login and once back on vikunja I got a red box withCould not authenticate against third party.. The users on authentik exists and are assigned to the vikunja app.On the console tab I see
POST https://vikunja.fbk.eu/api/v1/auth/openid/authentik/callback 400 (Bad Request).Thank you.
@fgionghi commented on GitHub (Sep 22, 2022):
Ok, my fault. I had
Could not authenticate against third party.error because I have a typo in the clientsecret. Tested also on azure and everything is working.Thank you.