Hello,

I'm trying to set up Rouncube for OAuth authentication but I'm probably missing something trivial, because the button for OAuth login doesn't even show on the login page.

I'm using Docker image roundcube/roundcubemail:latest


Here are the contents of the config file inside the container :

/var/www/html/config/config.docker.inc.php

-----

<?php
  $config['db_dsnw'] = 'mysql://[LOGIN]:[PASS]@mariadb.[DOMAIN.TLD]:3306/roundcube';
  $config['db_dsnr'] = '';
  $config['imap_host'] = 'tls://mail.[DOMAIN.TLD]:143';
  $config['smtp_host'] = 'tls://mail.[DOMAIN.TLD]:587';
  $config['username_domain'] = '';
  $config['temp_dir'] = '/tmp/roundcube-temp';
  $config['skin'] = 'elastic';
  $config['request_path'] = '/';
  $config['plugins'] = array_filter(array_unique(array_merge($config['plugins'], ['archive', 'zipdownload'])));

include('/var/roundcube/config/oauth2.inc.php');

-----


/var/roundcube/config/oauth2.inc.php

-----

<?php
$config['oauth_provider'] = 'generic';
$config['oauth_provider_name'] = '[DOMAIN.TLD]';
$config['oauth_client_id'] = '[CLIENT_ID]';
$config['oauth_client_secret'] = '[CLIENT_SECRET]';
$config['oauth_config_uri'] = 'https://auth.[DOMAIN.TLD]/.well-known/openid-configuration';
$config['oauth_issuer'] = null;
$config['oauth_jwks_uri'] = null;
$config['oauth_auth_uri'] = "https://auth.[DOMAIN.TLD]/oauth2/authorize";;
$config['oauth_pkce'] = 'S256';
$config['oauth_token_uri'] = null;
$config['oauth_identity_uri'] = null;
$config['oauth_logout_uri'] = null;
$config['oauth_timeout'] = 10;
$config['oauth_verify_peer'] = true;
$config['oauth_scope'] = "email profile openid";
$config['oauth_auth_parameters'] = [];
$config['oauth_identity_fields'] = null;
$config['oauth_login_redirect'] = true;
$config['oauth_debug'] = false;
$config['oauth_cache'] = 'db';
$config['oauth_cache_ttl'] = '8h';
$config['oauth_user_create_map'] = [
    'user_name' => ['name'],
    'user_email' => ['email'],
    'language' => ['locale'],
];
$config['oauth_password_claim'] = null;

-----


What am I missing?

Thanks

_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to