I don't have 'openmeetings.log' on my server. I just have 'catalina.log', 
'manager.log', 'access.log'
________________________________
De : Maxim Solodovnik <[email protected]>
Envoyé : lundi 30 mars 2020 08:55
À : Openmeetings user-list <[email protected]>
Objet : Re: google oauth2 error

I believe you need to check `openmeetings.log` instead of `access log` (share 
with care, might contain sensitive info)

On Mon, 30 Mar 2020 at 15:51, Ruben ALLITTEH 
<[email protected]<mailto:[email protected]>> wrote:
openmeetings access log when I tried to connect with google



[30/Mar/2020:08:31:53 +0000] "GET 
/openmeetings/?2-1.0-main~container-main-ws~panel&_=1585556656659 HTTP/1.1" 200 
254
[30/Mar/2020:08:32:21 +0000] "POST 
/openmeetings/wicket/bookmarkable/org.apache.openmeetings.web.pages.auth.SignInPage?5-1.-signin-signin&code=4/yAHgY9d6rq0pQglpTuTnolJVRiwPL7k2WVsASikk3omcolBKbQqS4lH2U6HmRGGOsrMLs1YsBYUR1d4GakgBMXk&scope=email+profile+https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile+openid&authuser=0&prompt=none&oauthid=2
 HTTP/1.1" 302 -
[30/Mar/2020:08:32:21 +0000] "GET 
/openmeetings/oauth/2?code=4/yAHRB1V3MhQcAL-_SQNz8P84Txo7Qq8bWZit0YQbDljbqGLohW8xO_VFK9JZ8_IhuceRYy3JOqxlKKO0Kx0HEtM&scope=email+profile+https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile+openid&authuser=0&prompt=none
 HTTP/1.1" 200 18243
[30/Mar/2020:08:32:22 +0000] "GET /openmeetings/css/custom.css HTTP/1.1" 304 -
[30/Mar/2020:08:32:22 +0000] "GET /openmeetings/css/theme_om/jquery-ui.min.css 
HTTP/1.1" 200 31071
[30/Mar/2020:08:32:22 +0000] "GET /openmeetings/css/theme.min.css HTTP/1.1" 200 
45367
[30/Mar/2020:08:32:22 +0000] "GET 
/openmeetings/wicket/resource/com.googlecode.wicket.kendo.ui.resource.KendoUIJavaScriptResourceReference/kendo.ui.core.min.js.map
 HTTP/1.1" 304 -
[30/Mar/2020:08:32:22 +0000] "GET 
/openmeetings/wicket/bookmarkable/org.apache.openmeetings.web.pages.auth.SignInPage?6--forget-form-captcha-captcha&code=4/yAHRB1V3MhQcAL-_SQNz8P84Txo7Qq8bWZit0YQbDljbqGLohW8xO_VFK9JZ8_IhuceRYy3JOqxlKKO0Kx0HEtM&scope=email+profile+https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile+openid&authuser=0&prompt=none&oauthid=2
 HTTP/1.1" 200 28265
[30/Mar/2020:08:32:22 +0000] "GET /openmeetings/css/images/logo.png HTTP/1.1" 
304 -
[30/Mar/2020:08:32:22 +0000] "GET 
/openmeetings/css/theme_om/images/ui-icons_3d80b3_256x240.png HTTP/1.1" 304 -
[30/Mar/2020:08:32:23 +0000] "GET 
/openmeetings/wicket/resource/com.googlecode.wicket.kendo.ui.theme.Initializer/kendo.default.mobile.min.css.map
 HTTP/1.1" 304 -
[30/Mar/2020:08:32:23 +0000] "GET 
/openmeetings/wicket/bookmarkable/org.apache.openmeetings.web.pages.auth.SignInPage?6-1.0-&code=4/yAHRB1V3MhQcAL-_SQNz8P84Txo7Qq8bWZit0YQbDljbqGLohW8xO_VFK9JZ8_IhuceRYy3JOqxlKKO0Kx0HEtM&scope=email+profile+https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile+openid&authuser=0&prompt=none&oauthid=2&code%3D4=yAHRB1V3MhQcAL-_SQNz8P84Txo7Qq8bWZit0YQbDljbqGLohW8xO_VFK9JZ8_IhuceRYy3JOqxlKKO0Kx0HEtM&scope%3Demail%2Bprofile%2Bhttps%3A=%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email%2Bhttps%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile%2Bopenid&authuser%3D0=&prompt%3Dnone=&_=1585557141478
 HTTP/1.1" 200 80
[30/Mar/2020:08:32:23 +0000] "GET 
/openmeetings/wicket/bookmarkable/org.apache.openmeetings.web.pages.auth.SignInPage?6-1.0-signin&code=4/yAHRB1V3MhQcAL-_SQNz8P84Txo7Qq8bWZit0YQbDljbqGLohW8xO_VFK9JZ8_IhuceRYy3JOqxlKKO0Kx0HEtM&scope=email+profile+https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile+openid&authuser=0&prompt=none&oauthid=2&navigatorAppName=Netscape&navigatorAppVersion=5.0%20(Windows)&navigatorAppCodeName=Mozilla&navigatorCookieEnabled=true&navigatorJavaEnabled=false&navigatorLanguage=fr&navigatorPlatform=Win32&navigatorUserAgent=Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64%3B%20rv%3A74.0)%20Gecko%2F20100101%20Firefox%2F74.0&screenWidth=1536&screenHeight=864&screenColorDepth=24&utcOffset=0&utcDSTOffset=0&browserWidth=1536&browserHeight=539&hostname=media.trstech.net&codebase=https%3A%2F%2Fmedia.trstech.net%3A5443%2Fopenmeetings%2Foauth%2F2&settings=%5Bobject%20Object%5D&_=1585557141479
 HTTP/1.1" 200 80
[30/Mar/2020:08:32:23 +0000] "GET 
/openmeetings/?2-1.0-main~container-main-ws~panel&_=1585556656660 HTTP/1.1" 200 
254






Cordialement,​

Ruben ALLITTEH
________________________________
De : Maxim Solodovnik <[email protected]<mailto:[email protected]>>
Envoyé : dimanche 29 mars 2020 00:18
À : Openmeetings user-list 
<[email protected]<mailto:[email protected]>>
Objet : Re: google oauth2 error

Hello,

Google OAuth works on demo https://om.alteametasoft.com:8443/next/
Can you check openmeetings.log?

On Sat, 28 Mar 2020 at 21:57, Ruben ALLITTEH 
<[email protected]<mailto:[email protected]>> wrote:


Hello !

I’m trying to configure oauth2 google for openmeetings 5.0.0-M2

I have activated ID client oauth2 with client ID and secret.

However authentication don’t working, once you are authenticated with google 
oauth2, openmeetings redirect to the sign-in page



My current configuration

Name : Google



Client_id : ooooooooooooooooooooooooooo



Client_secret : ****************



Redirect_URI : https://media.trstech.net:5443/openmeetings/oauth/2



Request Key URL : 
https://accounts.google.com/o/oauth2/auth?redirect_uri={$redirect_uri}&response_type=code&client_id={$client_id}&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile<https://accounts.google.com/o/oauth2/auth?redirect_uri=%7b$redirect_uri%7d&response_type=code&client_id=%7b$client_id%7d&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile>



Request token URL : 
https://oauth2.googleapis.com/tokeninfo?id_token={$code}&client_id={$client_id}&client_secret={$client_secret}&redirect_uri={$redirect_uri}&grant_type=authorization_code<https://oauth2.googleapis.com/tokeninfo?id_token=%7b$code%7d&client_id=%7b$client_id%7d&client_secret=%7b$client_secret%7d&redirect_uri=%7b$redirect_uri%7d&grant_type=authorization_code>



Request token attributes : 
code={$code}&client_id={$client_id}&client_secret={$client_secret}&redirect_uri={$redirect_uri}&grant_type=authorization_code



Request info URL : 
https://www.googleapis.com/auth/userinfo?access_token={$access_token}<https://www.googleapis.com/auth/userinfo?access_token=%7b$access_token%7d>



Have anyone running google oauth2 with OM 5.0.0-M2 ?






--
WBR
Maxim aka solomax


--
WBR
Maxim aka solomax

Reply via email to