Skip to content

oauth2 not working. Missing docu about oauth config, missing python package requests #1741

@SnoopAir

Description

@SnoopAir

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 = denyall

But 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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions