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

Allow App Admin to see People (authenticated with their App) #122

Closed
5 tasks done
nelsonic opened this issue Sep 17, 2020 · 2 comments
Closed
5 tasks done

Allow App Admin to see People (authenticated with their App) #122

nelsonic opened this issue Sep 17, 2020 · 2 comments
Assignees
Labels
discuss Share your constructive thoughts on how to make progress with this issue enhancement New feature or enhancement of existing functionality in-progress An issue or pull request that is being worked on by the assigned person T4h Time Estimate 4 Hours technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@nelsonic
Copy link
Member

nelsonic commented Sep 17, 2020

At present only superadmin can view the people authenticated with auth.

image

image

Obviously this means that non-admin cannot see people in order to grant them roles #119
which kinda limits the functionality of RBAC for non-admin people ... 🤦

So we need to allow non-admin people to see the people who have authenticated with their app but not see the people who have authenticated with other apps. 💭

Todo

  • Add :app_id to login_logs table
  • Log which app a person authenticates for/with in login_logs table
  • Select people from this table based on the app_id
  • Display these people in the /people (index) view
  • Allow app_admin to view the /person/:id provided that person has authenticated with their app.
@nelsonic nelsonic added enhancement New feature or enhancement of existing functionality T4h Time Estimate 4 Hours discuss Share your constructive thoughts on how to make progress with this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies labels Sep 17, 2020
@nelsonic nelsonic self-assigned this Sep 17, 2020
@nelsonic nelsonic added the in-progress An issue or pull request that is being worked on by the assigned person label Sep 17, 2020
@nelsonic
Copy link
Member Author

Given that dwyl/smart-home-auth-server#26 will not be functional without this, I'm working on it now. ⏳

@nelsonic
Copy link
Member Author

This feature is included in #123 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Share your constructive thoughts on how to make progress with this issue enhancement New feature or enhancement of existing functionality in-progress An issue or pull request that is being worked on by the assigned person T4h Time Estimate 4 Hours technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
None yet
Development

No branches or pull requests

1 participant