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-02 02:40:28 -0500 |
commit | 2faff375d430eaee1ea1a99de55c0f76375881d3 (patch) | |
tree | 08cc3bafe994c83235a03e514e2703e8d80f2418 /base/ocsp/shared/webapps/ocsp/WEB-INF/auth.properties | |
parent | 8ff3249f209c81cad21a4f7298b4c685e49e9103 (diff) | |
download | pki-2faff375d430eaee1ea1a99de55c0f76375881d3.tar.gz pki-2faff375d430eaee1ea1a99de55c0f76375881d3.tar.xz pki-2faff375d430eaee1ea1a99de55c0f76375881d3.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/shared/webapps/ocsp/WEB-INF/auth.properties')
-rw-r--r-- | base/ocsp/shared/webapps/ocsp/WEB-INF/auth.properties | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/base/ocsp/shared/webapps/ocsp/WEB-INF/auth.properties b/base/ocsp/shared/webapps/ocsp/WEB-INF/auth.properties index cd2e14058..81e24403f 100644 --- a/base/ocsp/shared/webapps/ocsp/WEB-INF/auth.properties +++ b/base/ocsp/shared/webapps/ocsp/WEB-INF/auth.properties @@ -1,10 +1,9 @@ -# Restful API auth/authz mapping info +# Restful API auth mapping info # # Format: -# <ACL Mapping> = <ACL Resource ID>,<ACL Resource Operation> -# ex: admin.users = certServer.ca.users,read +# <mapping name> = <allowed auth methods> +# ex: admin.users = certUserDBAuthMgr,passwdUserDBAuthMgr -account.login = certServer.ocsp.account,login -account.logout = certServer.ocsp.account,logout -admin.users = certServer.ocsp.users,execute -admin.groups = certServer.ocsp.groups,execute +default = * +account = certUserDBAuthMgr,passwdUserDBAuthMgr +admin = certUserDBAuthMgr |