diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2013-02-01 13:05:38 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-02-03 00:53:42 -0500 |
commit | 154bb05e9bbd45eaa3ca8bef8d2a6af076b1790c (patch) | |
tree | 67f4ede6b83daf696fc211e696d83327134e4a4a /base/common/src/com/netscape/certsrv/group/GroupResource.java | |
parent | 2ea42ce4cf91053bc91e5722abeb259cd0577510 (diff) | |
download | pki-154bb05e9bbd45eaa3ca8bef8d2a6af076b1790c.tar.gz pki-154bb05e9bbd45eaa3ca8bef8d2a6af076b1790c.tar.xz pki-154bb05e9bbd45eaa3ca8bef8d2a6af076b1790c.zip |
Added AuthMapping annotation.ticket-477-3ticket-474-7
A new AuthMapping annotation has been added to configure the required
authentication methods to acces each REST method. The annotation maps each
method into a list of authentication methods in auth.properties.
For security reason, most REST methods that require authentication have been
configured to require client certificate authentication. Authentication using
username and password will only be used to get installation token from the
security domain.
Previously the auth.properties files were used to store ACL mappings. Now the
ACL mappings have been moved into acl.properties.
Ticket #477
Diffstat (limited to 'base/common/src/com/netscape/certsrv/group/GroupResource.java')
-rw-r--r-- | base/common/src/com/netscape/certsrv/group/GroupResource.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/group/GroupResource.java b/base/common/src/com/netscape/certsrv/group/GroupResource.java index 17728dd13..8851bdaa0 100644 --- a/base/common/src/com/netscape/certsrv/group/GroupResource.java +++ b/base/common/src/com/netscape/certsrv/group/GroupResource.java @@ -32,12 +32,14 @@ import javax.ws.rs.core.Response; import org.jboss.resteasy.annotations.ClientResponseType; import com.netscape.certsrv.acls.ACLMapping; +import com.netscape.certsrv.authentication.AuthMapping; /** * @author Endi S. Dewata */ @Path("admin/groups") @ACLMapping("admin.groups") +@AuthMapping("admin") public interface GroupResource { @GET |