Hi all,
I have solved it. Actually it started working. As for password access to server
I am using the handleSecurity method of ServletContextHelper as below
if (request.getHeader("Authorization") == null) {
response.addHeader("WWW-Authenticate", "Basic");
response.sendError(HttpServletResponse.SC_UNAUTHORIZED);
return false;
}
which prompts the user for user name and password. I have also enabled the
https so I am quite happy with the authentication and User admin services.
Cheers
-Daghan
________________________________
From: Daghan ACAY <[email protected]>
Sent: Friday, August 19, 2016 10:49 AM
To: [email protected]
Subject: User Admin
Hi There,
I have two relevant questions:
the first one is, I am using User Admin Service and BndTools in eclipse, an
useradmin service is resolving the implementation to knoplerfish
implementation. I do
@Reference
UserAdmin userAdmin
.....
@Activate
public void initSecurity(){
User peter = (User) userAdmin.createRole("peter", Role.USER);
}
"peter" return null. am i using it wrong?
as a secondary but relevant question, I am using "Http Whiteboard
Specification" However I do not know how I can integrate it with simple
authentication. can you give me some pointers?
thanks in advance
-daghan
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev