Skip to content

Commit

Permalink
Bug 459781 - Customizable authentication & authorization:
Browse files Browse the repository at this point in the history
fixed isValidSession method
  • Loading branch information
edgarmueller committed Feb 12, 2015
1 parent e1f70fc commit 8abbe9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void add(ESAuthenticationInformation authenticationInformation) {

final AuthenticationInformation authInfo =
org.eclipse.emf.emfstore.internal.server.model.impl.api.ESAuthenticationInformationImpl.class
.cast(authenticationInformation).toInternalAPI();
.cast(authenticationInformation).toInternalAPI();

sessionUserMap.put(
authInfo.getSessionId(),
Expand All @@ -68,7 +68,7 @@ public void add(ESAuthenticationInformation authenticationInformation) {
* @throws AccessControlException in case the session is unknown
*/
public void isValid(ESSessionId sessionId) throws AccessControlException {
if (!sessionUserMap.containsKey(sessionId)) {
if (!sessionUserMap.containsKey(toInternalSession(sessionId))) {
throw new SessionTimedOutException(Messages.AccessControlImpl_SessionID_Unknown);
}
}
Expand Down

0 comments on commit 8abbe9d

Please sign in to comment.