Skip to content

Commit

Permalink
Bug 459781 - Customizable authentication & authorization
Browse files Browse the repository at this point in the history
Fixed missing cloen in UserVerifier & and naming of
orgUnitResolverServiceClass attribute in access control schema
  • Loading branch information
edgarmueller committed Mar 27, 2015
1 parent dc57ab4 commit c7fb8bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

<element name="orgUnitResolverServiceProvider">
<complexType>
<attribute name="orgUnitServiceClass" type="string">
<attribute name="orgUnitResolverServiceClass" type="string">
<annotation>
<documentation>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.util.Set;

import org.eclipse.emf.emfstore.internal.common.APIUtil;
import org.eclipse.emf.emfstore.internal.common.model.util.ModelUtil;
import org.eclipse.emf.emfstore.internal.server.ServerConfiguration;
import org.eclipse.emf.emfstore.internal.server.core.MonitorProvider;
import org.eclipse.emf.emfstore.internal.server.exceptions.AccessControlException;
Expand Down Expand Up @@ -64,7 +65,7 @@ public ESAuthenticationInformation verifyUser(String username, String password,

if (verifySuperUser(username, preparedPassword) || verifyPassword(username, preparedPassword)) {
final AuthenticationInformation createAuthenticationInfo = createAuthenticationInfo();
createAuthenticationInfo.setResolvedACUser(findUser(username));
createAuthenticationInfo.setResolvedACUser(ModelUtil.clone(findUser(username)));
return createAuthenticationInfo.toAPI();
}

Expand Down

0 comments on commit c7fb8bd

Please sign in to comment.