Differences between revisions 5 and 6
Revision 5 as of 2011-05-27 14:27:29
Size: 3206
Editor: benste
Comment:
Revision 6 as of 2011-05-27 14:30:04
Size: 3314
Editor: benste
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DEV/versions/11960552 #pragma page-filename DEV/versions/14352750
Line 53: Line 53:
It's also supposed to do Authentification
Line 61: Line 63:
|| <<Color2(&nbsp;, col=#ff0000)>> || <<Color2(need to write a site plugin to use another authentification framework, col=#ff0000)>>

Require user authentication in Core - and implement ACL in there

Pro Con
&nbsp;Very secure interface
&nbsp;Lot's of work in the Core UI to be done
&nbsp;REST-API could be extended to remote clients
(not Localhost only)
&nbsp;you would need to authenticate to the Core
&nbsp; &nbsp;difficult to know for WebUI what it is allowed to show

Pass Optional User Levels with each item you get via REST (by wacky, benste)

Pro Con
&nbsp;each UI could access these Level directly while working with an item
Messing up the item
ACLs are treated optional - e.g. plugins could enable additional feautres Lack of security once you've got Web Plugins
very easy to show and hide items in the WebUI based on ACL
this only applys for list style values
&nbsp;complete rewrite of REST needed
&nbsp; &nbsp;user-levels could be treated in DOC
Do we already have other than the mailman-web Django Project who access REST ?

Use another Middleware (by barry)

Reasons for running REST-API as root@localhost:

  • keeps the REST API simple
  • keeps the Data Model simple
  • clients have unlimmited functional flexibility
  • not locked into the core's perception of permissions and security

VS: requiring every client to implement security, access and permissions

It could do the permission check, filter the request as appropriate, and forward it to the core. Of course, responses could also be filtered if necessary, but this would present exactly the API that clients required.

It's also supposed to do Authentification

Pro
Con
not messing up REST neither CORE
cloning REST-Api with additional informations(if there is no possibility to check method calls e.g as a list)
pluggability and customization for
various environments
need to write a site plugin to use another authentification framework
&nbsp; &nbsp;

Implement it in the WebUI only

Pro Con
No need to change Core
&nbsp;every UI would need to it again - e.g taking a look at the documentation
Very big workload for every UI
&nbsp; &nbsp;
&nbsp;

MailmanWiki: DEV/Pro - Con ACL in different Layers (WebUI) (last edited 2011-05-27 14:30:05 by benste)