oauth2 not working. Missing docu about oauth config, missing python package requests #1746
Replies: 6 comments 10 replies
-
|
Code was overtaken https://gitlab.mim-libre.fr/alphabet/radicale_oauth/-/blob/dev/oauth2/radicale_auth_oauth2/__init__.py According to I cannot test this particular authentication module, potentially check here for more #1359 "requests" added as dependency by e0a24b1 |
Beta Was this translation helpful? Give feedback.
-
|
@pbiering : The added "requests" module looks good. About auth overall I have to say I'm just trying to apply the little knowledge I obtained when setting up other services with traefik and authentik. Which every time I have a new one I realized I don't know was much as I would like to/should. So if anybody with more experience in how to protect radicale behind authentik could give a hand that would be great. What I'm looking for is a way to provide the username and password (maybe username alone would be even good enough as long as authentik has authenticated the user beforehand) to the request. So maybe "none" in fact is a viable option - if I could find out how to provide the username alongside the request to the server. |
Beta Was this translation helpful? Give feedback.
-
|
another user is using "Authentic" via LDAP which needed an extension, see e.g. here Potentially try this and others would be potentially glad if Wiki would be extended if needed: |
Beta Was this translation helpful? Give feedback.
-
|
Hi @SnoopAir, I am using Authentik and radicale via tomsquest docker container. Let me know if I can support you on this. BR, BastelBaus P.S.: @pbiering, the radicale ldap docu worked nice for me. Thanks for processing the PR so fast and being patient with me ;-) *) might not be needed after the radicale fixes, I will check later |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @BastelBaus I was using tomsquest/docker-radicale:3.5.0.1 until I manually added the "request" python package to build my own image. About LDAP I was actually still am pretty confused. It seems I looked at it the wrong way. I thought I need a LDAP server to provide this service. Looking at it now from a new perspective my understanding seems to shift. Can you confirm my new point of view? Authentik provides login with username and password (for example), and a LDAP provider uses additional data to pretend it's LDAP server and send the combined/creatd data to the application, thus radicale as a LDAP login? Hmmm still confused. |
Beta Was this translation helpful? Give feedback.
-
which entry page? The WebUIs (Management and Infcloud) are only Javascript based CDAV clients running in the browser and connecting the same way as every other CDAV client is doing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The Radicale documentation does mention the ability to use OAuth2 for authentication, but it does not provide detailed information on the configuration options.
The documentation claims, that one type of authentication is "oauth". The config file mentions it as well:
# Value: none | htpasswd | remote_user | http_x_remote_user | dovecot | ldap | oauth2 | pam | denyall #type = denyallBut unfortunately there is not more information about how to configure it. Simply setting it to oauth and providing the oauth2_token_endpoint is not enough to work - as far as I can tell.
First thing is, that the latest image 3.5.1.0 is missing the python module "requests" necessary for oauth; at least judging from the log error.
After installing the missing python module, simply adding something like oauth2_client_id and oauth2_client_secret does not do the job. It's not expected as config:
radicale | [2025-03-24 13:31:04 +0000] [7] [CRITICAL] Invalid configuration: Invalid option 'oauth2_client_id' in section 'auth' in config file '/config/config'I'm trying to use authentik to protect access to radicale. Anybody having any similar experience? Or even better: Found a solution to do so?
Beta Was this translation helpful? Give feedback.
All reactions