score:1
drf provides permission classes, also if you need some customization you can do so by creating custom permission classes. refer https://www.django-rest-framework.org/api-guide/permissions/#api-reference.
on react side if you are using react router you can guard each route on some roles /permissions received from backend. refer https://hackernoon.com/role-based-authorization-in-react-c70bb7641db4 this might help you
Source: stackoverflow.com
Related Query
- How to use Django User Groups and Permissions on a React Frontend with Django Rest Framework
- How to authenticate user from standalone react frontend with django backend (same domain, different ports), using a third-party CAS authentication?
- How to integrate Web MIDI API with React frontend and Django backend
- how to use usestate with node.js backend and react frontend
- How to use React with Typescript and SASS
- How to use vw and vh css with React Native
- How to use Apollo Client + React Router to implement private routes and redirection based on user status?
- How to tell if a user is logged in with http only cookies and JWT in react (client-side)
- How to use Jest with React and Webpack
- How to use srcset 2x with React and Webpack?
- How to use inheritance with React components and es6 classes
- How to use emotion/styled with React and Typescript
- How to use setTimeout() along with React Hooks useEffect and setState?
- How to Use SVG with React and ReasonML?
- How to use Mapbox GL with React and Redux?
- How to use Material-UI with React and ASP.net MVC
- How do I use types defined by @types/redux-form in React component with Field and FieldArray?
- How to use token-based authentication with axios and react
- How to use and specify Generic Hooks in React with Typescript?
- How to use async/await with useEffect React hook, i tried a lot of examples and nothing is working
- how to use different IP address for development and production with react and axios
- how to use button as link in material-ui react with out underline and change color text?
- How to align user name on left side and points on right side with React bootstrap ListGroup?
- How to use mixins with Typescript and React JSX (TSX)
- How to keep user logged in in React app with a Django back-end
- How to use onChange with react hook on react select to change data base on user select
- Cors Issue with React Frontend and Django Backend
- How use React Routes with conditions and Redux?
- How to use Typescript with React Router and match
- How to use manual mock with typescript, react and jest?
More Query from same tag
- How i can change the state of my button on my object?
- Custom hook to get data from store, if no then dispatch action and return data
- React and Redux architecture issues
- What ref tag do I use for draft.js?
- Socket.io join() doing nothing
- Partial destructuring of object in function arguments in JavaScript
- Using an async function on useEffect that has as an argument a State that's also async setted
- react I want to get the params of the react router
- ReactJS taking data from API
- Cannot import materialize-css in React project to use Chips
- jest + enzyme, using mount(), document.getElementById() returns null on component which appear after _method call
- ReactRouter work not correct, only change url not view
- Uncaught ReferenceError: Main is not defined with webpack/react in Rails 4.2.4
- How to make map for React-Router using Function?
- Typescript complains that react component optional prop could possibly be undefined
- Why does React strangely render the <p> (paragraph) tag?
- How to put a default value in a React component with redux?
- Can't add additional items to React component (using Typescript)
- Trying to refactor the onSubmit property using Formik
- How to display the information submitted in the html form on another page using react js?
- Define useSelector type from external file React Typescript
- Pagination in React with First Next Previous Last
- How to import types from `material-ui`?
- How to make component update after call this.props.history.push?
- Merging two backgrounds into one
- Firebase cloud message/notifications are not receiving. JS
- Handler function doesn't have access to updated state variable
- Redux using combineReducers returning blank page
- Which of the following is the correct way to create links for the react components?
- react-calendar onChange do not set calendar to actual date