Package org.mockserver.oidc
Class OidcLogoutCallback
java.lang.Object
org.mockserver.oidc.OidcLogoutCallback
- All Implemented Interfaces:
ExpectationCallback<HttpResponse>,ExpectationResponseCallback
Mock OIDC end-session (
/logout) endpoint, the end_session_endpoint advertised in
the discovery document.
Implements RP-initiated logout: if a post_logout_redirect_uri is supplied it
302-redirects there (echoing any state), otherwise it returns a simple 200. As a
mock there is no session to invalidate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpRequest request) Called for every request when expectation condition has been satisfied.
-
Constructor Details
-
OidcLogoutCallback
public OidcLogoutCallback()
-
-
Method Details
-
handle
Description copied from interface:ExpectationResponseCallbackCalled for every request when expectation condition has been satisfied. The request that satisfied the expectation condition is passed as the parameter and the return value is the request that will be returned.- Specified by:
handlein interfaceExpectationCallback<HttpResponse>- Specified by:
handlein interfaceExpectationResponseCallback- Parameters:
request- the request that satisfied the expectation condition- Returns:
- the response that will be returned
-