Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for the admin-reader role and various smaller fixes in role-based authorization #422

Merged
merged 9 commits into from Apr 28, 2022

Commits on Apr 23, 2022

  1. use roles decorator from flexmeasures

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Apr 23, 2022
    Copy the full SHA
    e61f13f View commit details
    Browse the repository at this point in the history
  2. fix roles_accepted decorator's passing roles through to flask security

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Apr 23, 2022
    Copy the full SHA
    1ce5f23 View commit details
    Browse the repository at this point in the history
  3. the two reading User CRUD endpoints give admin-reader a better place.…

    … Also use API v3 to count a user's assets
    
    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Apr 23, 2022
    Copy the full SHA
    b077267 View commit details
    Browse the repository at this point in the history
  4. make tests work: fix a bug, a mock API route and remove a test we don…

    …'t need to do anymore after this PR
    
    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Apr 23, 2022
    Copy the full SHA
    138b9c5 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2022

  1. changelog entry

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Apr 25, 2022
    Copy the full SHA
    3f2916b View commit details
    Browse the repository at this point in the history
  2. let admin-reader use the SensorAPI, also leave TODO for using latest …

    …concepts in said API
    
    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Apr 25, 2022
    Copy the full SHA
    981a42b View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2022

  1. avoid lazy-loading user's account if not needed

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Apr 27, 2022
    Copy the full SHA
    2ddd43b View commit details
    Browse the repository at this point in the history
  2. fix typo

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Apr 27, 2022
    Copy the full SHA
    cebe695 View commit details
    Browse the repository at this point in the history
  3. preserve still-needed parts of test

    Signed-off-by: Nicolas Höning <nicolas@seita.nl>
    nhoening committed Apr 27, 2022
    Copy the full SHA
    6cb1470 View commit details
    Browse the repository at this point in the history