architecture: separate cmd parsing and authentication

Bug #390510 reported by rhynolite
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CleverNote
New
High
rhynolite

Bug Description

Command parsing and authentication must be separated.

Instaed of relying on

  CmdLogin cmd = new CmdLogin();

   cmd.parse(args);

to authenticate, the code should look like this:

  CmdLogin cmd = new CmdLogin();
  cmd.parse(args);
                Credentials auth = Authentication.checkCredentials(cmd);

The Credentials object will contain all auth-related information

The CMD objects will be responsible on for cmdline parsing and storing the data - no functionality besides the "main" function.

Chen Shapira (cshapi)
Changed in clevernote:
assignee: nobody → rhynolite (omer-shapira)
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.