Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get oauth data - AzureAD authentication #1287

Open
balgarvio opened this issue Jun 15, 2023 · 0 comments
Open

Cannot get oauth data - AzureAD authentication #1287

balgarvio opened this issue Jun 15, 2023 · 0 comments

Comments

@balgarvio
Copy link

balgarvio commented Jun 15, 2023

Hi all,

I'm having an issue with the AzureAD everytime I try to log in where I get the error "Cannot get oauth data".

The current configurations inside thruk_local.conf are:

<auth_oauth>
<provider 321>
login = "Login with AzureAD"
client_id = <client_id>
client_secret = <client_secret>
scopes = openid profile email
auth_url = https://login.microsoftonline.com/ID/oauth2/v2.0/authorize
token_url = https://login.microsoftonline.com/ID/oauth2/v2.0/token
api_url = https://graph.microsoft.com/v1.0/me
login_field = email

</auth_oauth>

The version I'm using:

  • Version of Thruk: 3.04
  • OMD Version: OMD 5.10-labs-edition

Analyzing the logs on AzureAD side, all my attempts are a sucess, but when I check the thruk.log I get this error message, so I believe I'm missing something inside Thruk/OMD configuration files. The error I get is:

[2023/06/15 14:51:47][server1][ERROR] user: ?
[2023/06/15 14:51:47][server1][ERROR] address: 127.0.0.1
[2023/06/15 14:51:47][server1][ERROR] time: 0.1s
[2023/06/15 14:51:47][server1][ERROR] cannot get oauth data
[2023/06/15 14:51:47][server1][ERROR] {
[2023/06/15 14:51:47][server1][ERROR] 'res' => 'HTTP::Response=HASH(0x55ce25eab770)'
[2023/06/15 14:51:47][server1][ERROR] }
[2023/06/15 14:51:47][server1][ERROR] ***************************

I have max verbose on the logs and doesn't give me much information.

Could anyone help me with my issue? It could be something regarding Thruk/OMD configurations?

Thanks in advance!

Best Regards,
Bruno

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant