Yair Zaslavsky has posted comments on this change.

Change subject: aaa: InternalAuthenticator should use the new extensions API
......................................................................


Patch Set 8:

(5 comments)

http://gerrit.ovirt.org/#/c/26443/8/backend/manager/modules/builtin-extensions/src/main/java/org/ovirt/engine/extensions/aaa/builtin/internal/InternalAuthenticator.java
File 
backend/manager/modules/builtin-extensions/src/main/java/org/ovirt/engine/extensions/aaa/builtin/internal/InternalAuthenticator.java:

Line 22:         try {
Line 23:             if 
(input.get(Base.InvokeKeys.COMMAND).equals(Base.InvokeCommands.INITIALIZE)) {
Line 24:                 doInit(input, output);
Line 25:             }
Line 26:             if 
(input.get(Base.InvokeKeys.COMMAND).equals(Authn.InvokeCommands.AUTHENTICATE_CREDENTIALS))
 {
> else if?
Done
Line 27:                 doAuthenticate(input, output);
Line 28:             }
Line 29:             output.mput(Base.InvokeKeys.RESULT, 
Base.InvokeResult.SUCCESS);
Line 30:         } catch (Exception ex) {


Line 24:                 doInit(input, output);
Line 25:             }
Line 26:             if 
(input.get(Base.InvokeKeys.COMMAND).equals(Authn.InvokeCommands.AUTHENTICATE_CREDENTIALS))
 {
Line 27:                 doAuthenticate(input, output);
Line 28:             }
> you need to add else and return unsupported.
Done
Line 29:             output.mput(Base.InvokeKeys.RESULT, 
Base.InvokeResult.SUCCESS);
Line 30:         } catch (Exception ex) {
Line 31:             output.mput(Base.InvokeKeys.RESULT, 
Base.InvokeResult.FAILED);
Line 32:             output.mput(Base.InvokeKeys.MESSAGE, ex.getMessage());


Line 28:             }
Line 29:             output.mput(Base.InvokeKeys.RESULT, 
Base.InvokeResult.SUCCESS);
Line 30:         } catch (Exception ex) {
Line 31:             output.mput(Base.InvokeKeys.RESULT, 
Base.InvokeResult.FAILED);
Line 32:             output.mput(Base.InvokeKeys.MESSAGE, ex.getMessage());
> choose:
Done
Line 33:         }
Line 34: 
Line 35:     }
Line 36: 


Line 44: 
Line 45:     private void doInit(ExtMap input, ExtMap output) {
Line 46:         context = input.<ExtMap> get(Base.InvokeKeys.CONTEXT);
Line 47:         context.mput(Base.ContextKeys.AUTHOR, "The oVirt Project").
Line 48:         mput(Base.ContextKeys.CONFIGURATION_SENSITIVE_KEYS, 
"config.authn.user.password").
> please do not replace, but append to this list of sensitive keys.
Done
Line 49:         mput(Base.ContextKeys.EXTENSION_NAME, "Internal Authentication 
(Built-in").
Line 50:         mput(Base.ContextKeys.LICENSE, "ASL 2.0").
Line 51:         mput(Base.ContextKeys.HOME_URL, "http://www.ovirt.org";).
Line 52:         mput(Base.ContextKeys.VERSION, "N/A").


Line 52:         mput(Base.ContextKeys.VERSION, "N/A").
Line 53:         mput(Authn.ContextKeys.CAPABILITIES, 
Authn.Capabilities.AUTHENTICATE_PASSWORD);
Line 54:         Properties config = context.<Properties> 
get(Base.ContextKeys.CONFIGURATION);
Line 55:         adminUser = config.getProperty("config.authn.user.name");
Line 56:         adminPassword = context.<Properties> 
get(Base.ContextKeys.CONFIGURATION).getProperty("config.authn.user.password");
> config.getProperty ?
Done
Line 57: 
Line 58:     }
Line 59: 


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I60f7b7f50617bff9f4872dc79f14fb016c9d72d3
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to