Question

openid connect on Centreon 22.10 with Google Oauth2

  • 17 November 2022
  • 1 reply
  • 27 views

Badge

Hi,

I ‘ve a Centreon server 21.10.10 (Centos) wich work fine with Google Oauth2.

I am moving to Centreon 22.10.1 (Debian) but OpenID connection is broken.

The authorization code is sent by Google but Centreon give me a “Request for connection token to external provider has failed”

 

Any help are welcome !

 

here is an example of the OauthFlows :

{
   Explanation: "GET from ORIGINATOR(previous page) => REDIRECTURL(Current page)",
   date: "2022-11-17T06:50:41.376Z",
   page: "page_1",
   originator: "https://accounts.google.com//o/oauth2/v2/auth?client_id=123123123123-xxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com&response_type=code&redirect_uri=https://supervision._____.org/centreon/authentication/providers/configurations/openid&state=6375d9b97beaf&scope=email",
   redirectURL: {
      baseURL: "https://supervision._____.org/centreon/authentication/providers/configurations/openid...",
      state: "6375d9b97beaf",
      code: "4/xXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX_xXxXxXxXx-xXxXxXxXxXxXxXxXxX",
      scope: "email https://www.googleapis.com/auth/userinfo.email openid",
      authuser: "0",
      hd: "eigsi.fr",
      prompt: "none"
   },
   postData: "No POST"
}
{
   Explanation: "GET from ORIGINATOR(previous page) => REDIRECTURL(Current page)",
   date: "2022-11-17T06:50:41.754Z",
   page: "page_1",
   originator: "https://supervision._____.org/centreon/authentication/providers/configurations/openid?state=6375d9b97beaf&code=4%2FxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX_xXxXxXxXx-xXxXxXxXxXxXxXxXxX&scope=email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+openid&authuser=0&hd=eigsi.fr&prompt=none",
   redirectURL: {
      baseURL: "https://supervision._____.org/centreon/login?authenticationError=Request for connecti...",
      authenticationError: "Request for connection token to external provider has failed"
   },
   postData: "No POST"
}

 

the login.log contain :

2022-11-17 06:50:41|-1|0|0|[Openid] [Error] Unable to get Token Access Information: Core\Security\Authentication\Domain\Exception\SSOAuthenticationException, message: Request for connection token to external provider has failed

 

Here is my config :

 

Token endpoint, introspection ans user information are not under https://accounts.google.com,

I hope his is not a problem ?


1 reply

Userlevel 5
Badge +13

Hi @nilux17 you right we have a bug when you define a complete url for /token endpoint.

We will fix this soon.

Regards,

Reply