Yair Zaslavsky has uploaded a new change for review.

Change subject: extapi: Changing fetch principal to support principal
......................................................................

extapi: Changing fetch principal to support principal

Change-Id: I6d2b532f56ef5b3a38af79ef869c5a5c8bf526bf
Bug-Url: https://bugzilla.redhat.com/1127623
Topic: AAA
Signed-off-by: Yair Zaslavsky <yzasl...@redhat.com>
---
M 
backend/manager/modules/extensions-api-root/extensions-api/src/main/java/org/ovirt/engine/api/extensions/aaa/Authz.java
1 file changed, 17 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/39/32339/1

diff --git 
a/backend/manager/modules/extensions-api-root/extensions-api/src/main/java/org/ovirt/engine/api/extensions/aaa/Authz.java
 
b/backend/manager/modules/extensions-api-root/extensions-api/src/main/java/org/ovirt/engine/api/extensions/aaa/Authz.java
index 1975bf0..588d600 100644
--- 
a/backend/manager/modules/extensions-api-root/extensions-api/src/main/java/org/ovirt/engine/api/extensions/aaa/Authz.java
+++ 
b/backend/manager/modules/extensions-api-root/extensions-api/src/main/java/org/ovirt/engine/api/extensions/aaa/Authz.java
@@ -56,6 +56,11 @@
          */
         public static final ExtKey PRINCIPAL_RECORD = new 
ExtKey("AAA_AUTHZ_PRINCIPAL_RECORD", ExtMap.class, 
"ebc0d5ca-f1ea-402c-86ae-a8ecbdadd6b5");
         /**
+         * Principal value.
+         * @see PrincipalRecord
+         */
+        public static final ExtKey PRINCIPAL = new 
ExtKey("AAA_AUTHZ_PRINCIPAL_RECORD", String.class, 
"a3c1d5ca-f1ea-131c-86ae-a1ecbcadd6b7");
+        /**
          * AuthResult of operation.
          * @see Status
          */
@@ -108,9 +113,10 @@
          * Used for user login.
          *
          * <p>
-         * Input:
+         * Input: Either one of the following:
          * <ul>
-         * <li>{@link Authn.InvokeKeys#AUTH_RECORD}[M] - authentication 
record.</li>
+         * <li>{@link Authn.InvokeKeys#AUTH_RECORD}[O] - authentication 
record.</li>
+         * <li>{@link Authz.InvokeKeys#PRINCIPAL}[O] - principal.</li>
          * </ul>
          * </p>
          *
@@ -221,6 +227,15 @@
          * @see GroupRecord
          */
         public static final ExtKey GROUPS = new 
ExtKey("AAA_AUTHZ_PRINCIPAL_GROUPS", Collection/*<GroupRecord>*/.class, 
"738ec045-aade-478f-90f9-13f4aa229a54");
+        /**
+         * Principal name.
+         * Note: this value is output only,
+         * and cannot be used for search.
+         */
+        public static final ExtKey PRINCIPAL = new 
ExtKey("AAA_AUTHZ_PRINCIPAL_PRINCIPAL",
+                String.class,
+                "37c1c4ff-5367-480d-950a-1c3092521188");
+
     }
 
     /**


-- 
To view, visit http://gerrit.ovirt.org/32339
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6d2b532f56ef5b3a38af79ef869c5a5c8bf526bf
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Yair Zaslavsky <yzasl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to