2012-08-08 2 views
3

UserStoreManager가있는 WSO2 ID 서버에 사용자 계정을 추가하려고합니다. 나는 어떤 문제 나없이 하나 개의 주장 값으로 사용자를 추가하지,하지만 내가 주장 '맵에서 하나 개 이상의 클레임 값을 추가하려고 할 때 그것은 나에게 예외가 발생합니다 :WS02 Identity Server는 API를 통해 둘 이상의 클레임 값을 가진 사용자를 추가 할 수 없습니다.

org.wso2.carbon.um.ws.api.WSUserStoreManager handleException 
SEVERE: Can not access the directory context oruser already exists in the system 
org.apache.axis2.AxisFault: Can not access the directory context oruser already exists in the system.. 

이 코드는 내가

를 사용을
Map<String, String> claims = new HashMap<String, String>(); 
claims.put("http://wso2.org/claims/givenname", "John"); 
//second value causing the exception 
claims.put("http://wso2.org/claims/lastname", "Doe"); 
STORE_MANAGER.addUser("JohnDoe", "123456", 
     new String[] { Constants.DEFAULT_ROLE }, claims, "default"); 

답변

1

사용중인 IS 버전은 무엇입니까?

BTW이

Map<String, String> claims = new HashMap<String, String>(); 

claims.put("http://wso2.org/claims/givenname", "John"); 

claims.put("http://wso2.org/claims/lastname", "Doe"); 

remoteUserStoreManager.addUser("JohnDoe", "123456",null, claims, "default"); 
을 시도하십시오
관련 문제