@Parameters({"postLogoutRedirectUri"}) @Test public void requestEndSessionFail2(final String postLogoutRedirectUri) throws Exception { showTitle("requestEndSessionFail2"); String state = UUID.randomUUID().toString(); EndSessionClient endSessionClient = new EndSessionClient(endSessionEndpoint); EndSessionResponse response = endSessionClient.execEndSession("INVALID_ACCESS_TOKEN", postLogoutRedirectUri, state); showClient(endSessionClient); assertEquals(response.getStatus(), Status.BAD_REQUEST.getStatusCode(), "Unexpected response code. Entity: " + response.getEntity()); assertNotNull(response.getEntity(), "The entity is null"); assertNotNull(response.getErrorType(), "The error type is null"); assertNotNull(response.getErrorDescription(), "The error description is null"); } }
@Test public void requestEndSessionFail1() throws Exception { showTitle("requestEndSessionFail1"); EndSessionClient endSessionClient = new EndSessionClient(endSessionEndpoint); EndSessionResponse response = endSessionClient.execEndSession(null, null, null); showClient(endSessionClient); assertEquals(response.getStatus(), 400, "Unexpected response code. Entity: " + response.getEntity()); assertNotNull(response.getEntity(), "The entity is null"); assertNotNull(response.getErrorType(), "The error type is null"); assertNotNull(response.getErrorDescription(), "The error description is null"); }
endSessionRequest1.setSessionId(authorizationResponse.getSessionId()); EndSessionClient endSessionClient = new EndSessionClient(endSessionEndpoint); endSessionClient.setRequest(endSessionRequest1); endSessionRequest2.setSessionId(authorizationResponse.getSessionId()); EndSessionClient endSessionClient2 = new EndSessionClient(endSessionEndpoint); endSessionClient2.setRequest(endSessionRequest2);
endSessionRequest1.setSessionId(authorizationResponse.getSessionId()); EndSessionClient endSessionClient = new EndSessionClient(endSessionEndpoint); endSessionClient.setRequest(endSessionRequest1); endSessionRequest2.setSessionId(authorizationResponse.getSessionId()); EndSessionClient endSessionClient2 = new EndSessionClient(endSessionEndpoint); endSessionClient2.setRequest(endSessionRequest2);
endSessionRequest.setSessionId(authorizationResponse.getSessionId()); EndSessionClient endSessionClient = new EndSessionClient(endSessionEndpoint); endSessionClient.setRequest(endSessionRequest);