-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* receive POST logout request * supports Logout request/response from shibboleth * handle http-redirect for logout * add LogoutHandler in SAML support * return logout response + refactoring * doc + fix bug * more tests * support SOAP incoming logout request * test logout with CAS 6 * add deprecated constructor * fix typos
- Loading branch information
Showing
63 changed files
with
2,386 additions
and
1,869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 4 additions & 37 deletions
41
pac4j-cas/src/main/java/org/pac4j/cas/logout/CasLogoutHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,11 @@ | ||
package org.pac4j.cas.logout; | ||
|
||
import org.pac4j.core.context.WebContext; | ||
import org.pac4j.core.logout.handler.LogoutHandler; | ||
|
||
/** | ||
* This interface defines how to handle CAS logout request on client side. | ||
* | ||
* @author Jerome Leleu | ||
* @since 1.9.2 | ||
* Use the {@link LogoutHandler} instead. | ||
*/ | ||
public interface CasLogoutHandler<C extends WebContext> { | ||
|
||
/** | ||
* Associates a ticket with the current web session. | ||
* | ||
* @param context the web context | ||
* @param ticket the ticket | ||
*/ | ||
void recordSession(C context, String ticket); | ||
|
||
/** | ||
* Destroys the current web session for the given ticket for a front channel logout. | ||
* | ||
* @param context the web context | ||
* @param ticket the ticket | ||
*/ | ||
void destroySessionFront(C context, String ticket); | ||
|
||
/** | ||
* Destroys the current web session for the given ticket for a back channel logout. | ||
* | ||
* @param context the web context | ||
* @param ticket the ticket | ||
*/ | ||
void destroySessionBack(C context, String ticket); | ||
|
||
/** | ||
* Renew the web session. | ||
* | ||
* @param oldSessionId the old session identifier | ||
* @param context the web context | ||
*/ | ||
void renewSession(String oldSessionId, C context); | ||
@Deprecated | ||
public interface CasLogoutHandler<C extends WebContext> extends LogoutHandler<C> { | ||
} |
Oops, something went wrong.