Roundcube Community Forum

 

Example configuration with Google OAUTH2

Started by mvk, January 27, 2022, 05:19:10 AM

Previous topic - Next topic

mvk

Has anyone had successful Roundcube 1.5.2 configuration experience with Google OAUTH2?
I've added these configuration options, got the button on the login screen but can't log in.
What did I miss?

// Enable OAuth2 by defining a provider. Use 'generic' here
$config['oauth_provider'] = 'google';

// Provider name to be displayed on the login button
$config['oauth_provider_name'] = 'Google';

// Mandatory: OAuth client ID for your Roundcube installation
$config['oauth_client_id'] = 'XXX.apps.googleusercontent.com';

// Mandatory: OAuth client secret
$config['oauth_client_secret'] = 'GOCSPX-XXX';

// Mandatory: URI for OAuth user authentication (redirect)
$config['oauth_auth_uri'] = 'https://my.server/index.php/login/oauth';

xuo

#1
Hi,

I've got the same question. No one can help ?
Personnally, I even don't know how to get the oauth_client_id and oauth_client_secret values.

Regards.

Xuo.