OpenId Connect with wso2 returns only sub

When I ask for WSO2 user information, the response contains only its sub.

Request GET https://srv-wso2.domain.com:9443/oauth2/userinfo?schema=openid
Request headers {Accept=[application/json, application/*+json], Authorization=[Bearer 50ff3e7940248bdc01e2c1d33de77537], Content-Length=[0]}
Response body {"sub":"RECIF/arnaud@carbon.super"}

In the /conf/identity/identity.xml repository file, OpenIdConnect is configured to use http://wso2.org/claims as UserInfoEndpointClaimDialect.

I use Active Directory as a user repository. And in the claims configuration, some mappings must be removed as displayName or givenName or full name.

Any ideas?

Edit: I have the same problems with the playground2 application. I am using WSO2 5.1.0

+4
source share

Source: https://habr.com/ru/post/1625049/


All Articles