Skip to content

Refactor and structure access_control implementation - #149

Merged
kushagra189 merged 10 commits into
devfrom
move_access_control_config
Nov 7, 2022
Merged

kushagra189 merged 10 commits into
devfrom
move_access_control_config

Conversation

@kushagra189

@kushagra189 kushagra189 commented Oct 2, 2022 •

Copy link
Copy Markdown
Contributor

Description

Access control needs to be a part of the security configuration and not a separate module. Hence, have refactored the implementation to pertain to the same.

Fixes #145

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation (or documentation does not need to be updated)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have not reduced the existing code coverage

@codecov

codecov Bot commented Oct 2, 2022 •

Copy link
Copy Markdown

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (808841f) compared to base (4549776).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #149   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines          966       967    +1     
=========================================
+ Hits           966       967    +1     
Impacted Files Coverage Δ
.../access_control/foca_casbin_adapter/casbin_rule.py 100.00% <ø> (ø)
foca/foca.py 100.00% <100.00%> (ø)
foca/models/config.py 100.00% <100.00%> (ø)
...a/security/access_control/access_control_server.py 100.00% <100.00%> (ø)
foca/security/access_control/constants.py 100.00% <100.00%> (ø)
...rity/access_control/foca_casbin_adapter/adapter.py 100.00% <100.00%> (ø)
...security/access_control/register_access_control.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kushagra189
kushagra189 requested a review from uniqueg November 7, 2022 13:49
@kushagra189
kushagra189 merged commit 28a523a into dev Nov 7, 2022
@kushagra189
kushagra189 deleted the move_access_control_config branch November 7, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Implement access control config as a part of security configuration

2 participants