Author Topic: Example configuration with Google OAUTH2  (Read 1773 times)

Offline mvk

  • Newbie
  • *
  • Posts: 1
Example configuration with Google OAUTH2
« on: January 27, 2022, 05:19:10 AM »
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?

Code: [Select]
// 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';
« Last Edit: January 27, 2022, 05:22:25 AM by mvk »

Offline xuo

  • Jr. Member
  • **
  • Posts: 23
Re: Example configuration with Google OAUTH2
« Reply #1 on: August 20, 2022, 12:22:14 PM »
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.
« Last Edit: August 20, 2022, 12:27:25 PM by xuo »