Google OAuth2 #1128
Replies: 3 comments 4 replies
-
Those urls are wrong, use these and it should work:
I also started a page with some common examples here: https://thruk.org/documentation/oauth2.html |
Beta Was this translation helpful? Give feedback.
-
I've made some progress in my testing and I have a better understanding of what I don't understand. Here are some things that can help me: If I go directly to the Thruk interface without going through the login CGI, for example directly to: https://monitoring.flowbird.group/monitoring/thruk/cgi-bin/main.cgi I see the Thruk interface ans I'm am automaticcaly logged as the user I created on Thruk from the omdadmin account (flowbird). But I don't know by what magic this account is chosen, is it simply the first one in the list? If I go through the login CGI, I can log in via Google and everything works as expected, I just have to configure the authenticated user account on the Thruk interface. So I am missing the understanding of the authentication mechanism that selects an account if there is no authentication. I have never been able to configure Apache authentication by injecting the BASIC AUTH header either, only the cookie mechanism seems to be used and I think it is around the cookie and the URL path that I lack understanding your help will be highly appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hi, they are a little bug in the logging at: file : lib/Thruk/Utils/OAuth.pm the $res var is a class, to see the error message, you need to use the next alternative line: return $c->detach_error({msg => "cannot get oauth data", code => 500, debug_information => { res => $res**->content** } }); now you can see the message, in my case is a problem with the ca file, note that thruk is not using the system ca file, and you need to include it in the config file: etc/thruk/thruk_local.conf |
Beta Was this translation helpful? Give feedback.
-
Hi. I wonder if OAuth.pm works with Google OAuth2, because I tried and get "cannot get oauth data" error.
I'm using OMD Labs version 4.20
Here my oauth config:
Greetings!
Beta Was this translation helpful? Give feedback.
All reactions