Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch Version 1.2.4
Describe the issue:
I have a oidc auth enabled for opensearch with auth0.
In the internal_users.yml the admin username is admin
but auth0 returns admin@gmail.com
as the default subject key. I have added a custom claim in JWT which will return admin
. But I see error logs stating that no subject found for the new custom claim. I have attached the required logs for the same. Is there a way I can log the received JWT and cross-verify. Please let know.
Configuration:
Relevant Logs or Screenshots:
multi-node-wazuh1.indexer-1 | [2023-01-25T17:57:04,563][WARN ][c.a.d.a.h.j.AbstractHTTPJwtAuthenticator] [wazuh1.indexer] Failed to get subject from JWT claims, check if subject_key ‘nickname’ is correct.
multi-node-wazuh1.indexer-1 | [2023-01-25T17:57:04,564][ERROR][c.a.d.a.h.j.AbstractHTTPJwtAuthenticator] [wazuh1.indexer] No subject found in JWT token
multi-node-wazuh.dashboard-1 | {“type”:“log”,“@timestamp”:“2023-01-25T17:57:04Z”,“tags”:[“error”,“plugins”,“securityDashboards”],“pid”:38,“message”:“OpenId authentication failed: Error: Authentication Exception”}