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

server/auth: implement role & role manager #3256

Merged
merged 10 commits into from
Dec 9, 2020

Commits on Dec 8, 2020

  1. server/auth: implement role & role manager

    Signed-off-by: PhotonQuantum <self@lightquantum.me>
    PhotonQuantum committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    f592ccd View commit details
    Browse the repository at this point in the history
  2. server/auth: refine error definitions

    Signed-off-by: PhotonQuantum <self@lightquantum.me>
    PhotonQuantum committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    0483b71 View commit details
    Browse the repository at this point in the history
  3. server/auth: add tests for Permission

    Signed-off-by: PhotonQuantum <self@lightquantum.me>
    PhotonQuantum committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    debb51a View commit details
    Browse the repository at this point in the history
  4. server/auth: format imports

    Signed-off-by: PhotonQuantum <self@lightquantum.me>
    PhotonQuantum committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    7399e0f View commit details
    Browse the repository at this point in the history
  5. server/auth: lock mutex when reading permission of a role

    Signed-off-by: PhotonQuantum <self@lightquantum.me>
    PhotonQuantum committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    8ea3478 View commit details
    Browse the repository at this point in the history
  6. server/auth: rename variables

    Signed-off-by: PhotonQuantum <self@lightquantum.me>
    PhotonQuantum committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    42cb426 View commit details
    Browse the repository at this point in the history
  7. server/auth: merge jsonRole into Role

    Signed-off-by: PhotonQuantum <self@lightquantum.me>
    PhotonQuantum committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    4208578 View commit details
    Browse the repository at this point in the history
  8. server/auth: change errs to ErrJSONMarshal

    Signed-off-by: PhotonQuantum <self@lightquantum.me>
    PhotonQuantum committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    fb89c21 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2020

  1. server/auth: use MemoryKV to run tests

    Signed-off-by: PhotonQuantum <self@lightquantum.me>
    PhotonQuantum committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    af1e854 View commit details
    Browse the repository at this point in the history
  2. server/auth: changing role methods to private

    Signed-off-by: PhotonQuantum <self@lightquantum.me>
    PhotonQuantum committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    c4eb373 View commit details
    Browse the repository at this point in the history