Closed NLE-IENA closed 4 months ago
The authurl should be the issuer url. I don't really know anything about Azure Entrada, but the URL you have in there looks like the authorize URL.
Also check out the docs: https://vikunja.io/docs/openid#step-2-configure-vikunja
Hello, thanks for your answer but it's not logic. In the documentation I look and you re-sent, it's clearly write to use authurl. So that's what I use for my Azure. It seemed to me that openid works the same way everywhere which makes it so interesting.
Nevermind with your answer I manage to pass through the error. For those who encounter the problem, here is the url that I had to enter in my authurl variable: https://sts.windows.net/
I also had to modify the redirection url in my Azure app because I indicated this one by following the documentation: https://vikunja.mydomain/auth/openid/ whereas this is the one that Azure expected https://vikunja.mydomain/auth/openid/azure.
Finally I still need a little help @kolaente because now the link with Azure seems well done but the tool gives me the following error.
ERROR ▶ openid/HandleCallback 12c Claim does not contain an email address for provider Azure
ERROR ▶ openid/HandleCallback 12d No email provided
However, I have correctly configured the access rights to my applications on the following elements.
I also had to modify the redirection url in my Azure app because I indicated this one by following the documentation: https://vikunja.mydomain/auth/openid/ whereas this is the one that Azure expected https://vikunja.mydomain/auth/openid/azure.
The redirect url mentioned in the docs is the one for Vikunja's auth.redirecturl
. In Azure you need to use the url you found out.
Finally I still need a little help @kolaente because now the link with Azure seems well done but the tool gives me the following error.
Does your user allow email sharing? I don't know how Azure handles this, but some providers require the user to agree to email sharing for third party providers. Quoting from https://vikunja.io/docs/config-options/#openid:
Some openid providers (like Gitlab) only make the email of the user available through OpenID if they have set it to be publicly visible. If the email is not public in those cases, authenticating will fail.
I struggled a bit to understand your last point but it's ok now ! Thank you ! I'll try to configure teams now but it's already really good.
Are you interesseted by my configurations, urls, steps, etc in Azure and Vikunja conf for the documentation maybe ?
Thank you Nicolas
I'd love a contribution to the examples! https://vikunja.io/docs/openid-example-configurations
Ok so for Azure:
Configuration in Vikunja Application
"https://sts.windows.net/<tenant_id>/"
Configuration in Azure
Redirect URL:
The redirect URL should be:
"https://vikunja.iena.com/auth/openid/<provider_name_in_conf_file>"
Authorized APIs:
The following delegated APIs must be authorized:
Creating a Secret
Token Configuration:
In the application's token configuration, add an optional claim:
Do you need/want more details ?
I think that should work. Added your text (with a few modifications) to https://vikunja.io/docs/openid-example-configurations#azure-entrada-id
Many thanks!
Description
Hello,
I'm trying to configure openid connection with Azure Entra ID. I don't usually have issue to connect application to Azure Entra ID (already have some) but I still have a problem with Vikunja. You're my last hope.
I use the docker installation and have mount a config.yml (copied from the sample and edited with my parameters). This part is ok but the application seems to not found the routes to my Azure conf.
Here my error:
We can see a 404 error but can't understand why.
Here my auth configuration: `auth: local: enabled: true
We can also see in the api/v1/info page the provider not appaers:
Can you help me find what's wrong please ?
Thank you Nicolas
Vikunja Version
0.24
Browser and version
No response
Can you reproduce the bug on the Vikunja demo site?
No
Screenshots
No response