summaryrefslogtreecommitdiffstats
path: root/base/ocsp/src/com/netscape/ocsp/OCSPApplication.java
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2013-02-01 13:05:38 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2013-02-02 02:40:28 -0500
commit2faff375d430eaee1ea1a99de55c0f76375881d3 (patch)
tree08cc3bafe994c83235a03e514e2703e8d80f2418 /base/ocsp/src/com/netscape/ocsp/OCSPApplication.java
parent8ff3249f209c81cad21a4f7298b4c685e49e9103 (diff)
downloadpki-ticket-477-1.tar.gz
pki-ticket-477-1.tar.xz
pki-ticket-477-1.zip
Added AuthMapping annotation.ticket-477-1
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/ocsp/src/com/netscape/ocsp/OCSPApplication.java')
-rw-r--r--base/ocsp/src/com/netscape/ocsp/OCSPApplication.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/ocsp/src/com/netscape/ocsp/OCSPApplication.java b/base/ocsp/src/com/netscape/ocsp/OCSPApplication.java
index 21b37f801..6a5f60f6e 100644
--- a/base/ocsp/src/com/netscape/ocsp/OCSPApplication.java
+++ b/base/ocsp/src/com/netscape/ocsp/OCSPApplication.java
@@ -6,6 +6,7 @@ import java.util.Set;
import javax.ws.rs.core.Application;
import com.netscape.certsrv.acls.ACLInterceptor;
+import com.netscape.certsrv.authentication.AuthInterceptor;
import com.netscape.certsrv.base.PKIException;
import com.netscape.cms.servlet.account.AccountService;
import com.netscape.cms.servlet.admin.GroupMemberService;
@@ -40,7 +41,8 @@ public class OCSPApplication extends Application {
// exception mapper
classes.add(PKIException.Mapper.class);
- // ACL interceptor
+ // interceptors
+ singletons.add(new AuthInterceptor());
singletons.add(new ACLInterceptor());
}