use of org.keycloak.adapters.spi.HttpFacade in project keycloak by keycloak.
the class ClaimInformationPointProviderTest method testBodyClaimsInformationPoint.
@Test
public void testBodyClaimsInformationPoint() {
HttpFacade httpFacade = createHttpFacade(new HashMap<>(), new ByteArrayInputStream("raw-body-text".getBytes()));
Map<String, List<String>> claims = getClaimInformationProviderForPath("/claims-provider", "claims").resolve(httpFacade);
assertEquals("raw-body-text", claims.get("claim-from-body").get(0));
}
Aggregations