GoogleOAuth2 invalid hosted domain when multiple domain configured
Since upgrade to 8.10.0, the following Google Auth configuration doesn't work anymore:
providers:
- { name: 'google_oauth2',
label: 'Google',
app_id: '***',
app_secret: '***',
args: { access_type: 'offline', approval_prompt: 'Company Gitlab', hd: '%w(exemple.com exemple2.com)' }
}
Since this commit of the omniauth-google library, it should works : https://github.com/zquestz/omniauth-google-oauth2/commit/1e6bb9684e589aac45f581476987d07d85487622
Maybe my configuration wasn't taken into account because of lib dependency version before this commit: https://gitlab.com/gitlab-org/gitlab-ce/commit/85cb5635babe5aa2c051fa2f40be4b28a106640f