Hey guys,
I noticed a bug in OpenKM. When trying to login using OKMAuth.getInstance().login(username, password) interface for the first time I got a server error indicating, that the user doesn't have the right to access okm:trash. The problem here is that the user did not get the default role defined in spring context (ROLE_USER).
When I use OKMAuth.getInstance().login() - so without username and password - everything is working fine. There you get the roles from spring context which also contains the default role. But I really need the login(String, String) to get a token and do everything following with token instead of username and password.
The login(String, String) methods seems to ignore the spring context. It only gets the roles from PrincipalAdapter.
It seems like a bug. Can you please have a look whats going wrong here?
I checked the roles after login(String, String) call by using OKMAuth.getInstance().getRolesByUser(username) which do not contain the default role (ROLE_USER).
Thanks!
I noticed a bug in OpenKM. When trying to login using OKMAuth.getInstance().login(username, password) interface for the first time I got a server error indicating, that the user doesn't have the right to access okm:trash. The problem here is that the user did not get the default role defined in spring context (ROLE_USER).
When I use OKMAuth.getInstance().login() - so without username and password - everything is working fine. There you get the roles from spring context which also contains the default role. But I really need the login(String, String) to get a token and do everything following with token instead of username and password.
The login(String, String) methods seems to ignore the spring context. It only gets the roles from PrincipalAdapter.
It seems like a bug. Can you please have a look whats going wrong here?
I checked the roles after login(String, String) call by using OKMAuth.getInstance().getRolesByUser(username) which do not contain the default role (ROLE_USER).
Thanks!