Search in sources :

Example 6 with ClaimsParameter

use of com.predic8.membrane.core.interceptor.oauth2.parameter.ClaimsParameter in project service-proxy by membrane.

the class ClaimsParameterTest method testParsingNoIdToken.

@Test
public void testParsingNoIdToken() throws Exception {
    cp = new ClaimsParameter(createSupportedClaims("email"), OAuth2TestUtil.getMockClaims());
    assertEquals(getMockClaimsEmailInBoth(), cp.toJson());
}
Also used : ClaimsParameter(com.predic8.membrane.core.interceptor.oauth2.parameter.ClaimsParameter) Test(org.junit.Test)

Aggregations

ClaimsParameter (com.predic8.membrane.core.interceptor.oauth2.parameter.ClaimsParameter)6 Test (org.junit.Test)3 JwtGenerator (com.predic8.membrane.core.interceptor.oauth2.tokengenerators.JwtGenerator)2 ArrayList (java.util.ArrayList)2