@dan Sorry forgot to update here. Yes, the integration fixed using OpenID, it works.
I have another question. By creating role mapping on the elastic side, all the user logins will have same role.
How is to mapping the FusionAuth role/group to the elastic role? I want my user on FusionAuth login based on their roles.
I am playing on claims.principal and claims.groups, but not really get it.
If your OP has the ability to provide groups or roles to RPs via tha use of an OpenID Claim, then you should map this claim to the claims.groups setting in the Elasticsearch realm (see Mapping claims to user properties), and then make use of it in a role mapping as per the example below.
Reference: https://www.elastic.co/guide/en/elasticsearch/reference/7.9/oidc-role-mapping.html
Referen