cakephp-tinyauth icon indicating copy to clipboard operation
cakephp-tinyauth copied to clipboard

First run on having an auth shell for CLI access.

Open dereuromark opened this issue 5 years ago • 1 comments

Is someone interested in making this happen for 2.0? Maybe as commands then? I do prefer Shell though as here the API is cleaner in terms of one high level entry point with subcommands instead of a flat list of messy ones hard to find.

Commands to easily add and remove

The idea is to have nice little commands to modify acl or auth INI files.

bin/cake tinyauth add controller action role
bin/cake tinyauth remove controller action role

etc

Maybe also

bin/cake tinyauth clean // Sort and remove dups
bin/cake tinyauth roles // Display available roles

etc

More ideas

We could also add URL convenience adding:

bin/cake tinyauth add-from-url /my-prefix/my-plugin/my-controller/my-action role

dereuromark avatar Oct 18 '19 09:10 dereuromark

Codecov Report

Merging #108 into master will decrease coverage by 18.88%. The diff coverage is 0%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master     #108       +/-   ##
=============================================
- Coverage     83.72%   64.83%   -18.89%     
+ Complexity      353      309       -44     
=============================================
  Files            21       15        -6     
  Lines           860      765       -95     
=============================================
- Hits            720      496      -224     
- Misses          140      269      +129
Impacted Files Coverage Δ Complexity Δ
src/Shell/AuthShell.php 0% <0%> (ø) 61 <61> (?)
...c/Controller/Component/AuthenticationComponent.php 0% <0%> (-61.71%) 10% <0%> (-11%)
...rc/Controller/Component/AuthorizationComponent.php 0% <0%> (-59.26%) 3% <0%> (-6%)
src/Auth/AllowTrait.php 68.57% <0%> (-19.77%) 15% <0%> (-15%)
src/Controller/Component/AuthComponent.php 75% <0%> (-7.61%) 13% <0%> (+1%)
src/Auth/AuthUserTrait.php 93.18% <0%> (-2.28%) 20% <0%> (ø)
src/Sync/Syncer.php 79.36% <0%> (-1.24%) 25% <0%> (-2%)
src/Auth/AclAdapter/IniAclAdapter.php 87.5% <0%> (-0.74%) 16% <0%> (-1%)
src/Auth/AllowAdapter/IniAllowAdapter.php 90.9% <0%> (-0.4%) 6% <0%> (-1%)
src/View/Helper/AuthUserHelper.php 95.23% <0%> (ø) 21% <0%> (ø) :arrow_down:
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4f74c31...d9bf2c3. Read the comment docs.

codecov-io avatar Nov 21 '19 11:11 codecov-io

Pretty much done with https://github.com/dereuromark/cakephp-tinyauth/commit/2fbfa12c9de2750f3effad9781b2e06d2071dbe1 now

dereuromark avatar Dec 28 '23 11:12 dereuromark