You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jagdeep Singh edited this page Jun 29, 2019
·
2 revisions
Role based authorization
What problems do we need to solve for?
What is the user authorized to do?
Which parts of our application care about this?
How can we determine this?
What's in the token?
Contact between the UI and the API
How do we make this easy to use?
Wrapper
Proposal
component
Based on your permissions and login status, it either gives you access to a component or jsx or hides it.
Must not use Redux
Why? We don't want to force implementors into a specific state management system.
'''
// The div only shows if you are logged in
// The div only shows if you are logged in AND have read permissions