├── .babelrc ├── .gitignore ├── LICENSE ├── README.md ├── package.json ├── src ├── AdminPage │ ├── AdminPage.jsx │ └── index.js ├── App │ ├── App.jsx │ └── index.js ├── HomePage │ ├── HomePage.jsx │ └── index.js ├── LoginPage │ ├── LoginPage.jsx │ └── index.js ├── _components │ ├── PrivateRoute.jsx │ └── index.js ├── _helpers │ ├── auth-header.js │ ├── fake-backend.js │ ├── handle-response.js │ ├── history.js │ ├── index.js │ └── role.js ├── _services │ ├── authentication.service.js │ ├── index.js │ └── user.service.js ├── index.html └── index.jsx └── webpack.config.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/package.json -------------------------------------------------------------------------------- /src/AdminPage/AdminPage.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/AdminPage/AdminPage.jsx -------------------------------------------------------------------------------- /src/AdminPage/index.js: -------------------------------------------------------------------------------- 1 | export * from './AdminPage'; -------------------------------------------------------------------------------- /src/App/App.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/App/App.jsx -------------------------------------------------------------------------------- /src/App/index.js: -------------------------------------------------------------------------------- 1 | export * from './App'; -------------------------------------------------------------------------------- /src/HomePage/HomePage.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/HomePage/HomePage.jsx -------------------------------------------------------------------------------- /src/HomePage/index.js: -------------------------------------------------------------------------------- 1 | export * from './HomePage'; -------------------------------------------------------------------------------- /src/LoginPage/LoginPage.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/LoginPage/LoginPage.jsx -------------------------------------------------------------------------------- /src/LoginPage/index.js: -------------------------------------------------------------------------------- 1 | export * from './LoginPage'; -------------------------------------------------------------------------------- /src/_components/PrivateRoute.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/_components/PrivateRoute.jsx -------------------------------------------------------------------------------- /src/_components/index.js: -------------------------------------------------------------------------------- 1 | export * from './PrivateRoute'; 2 | -------------------------------------------------------------------------------- /src/_helpers/auth-header.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/_helpers/auth-header.js -------------------------------------------------------------------------------- /src/_helpers/fake-backend.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/_helpers/fake-backend.js -------------------------------------------------------------------------------- /src/_helpers/handle-response.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/_helpers/handle-response.js -------------------------------------------------------------------------------- /src/_helpers/history.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/_helpers/history.js -------------------------------------------------------------------------------- /src/_helpers/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/_helpers/index.js -------------------------------------------------------------------------------- /src/_helpers/role.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/_helpers/role.js -------------------------------------------------------------------------------- /src/_services/authentication.service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/_services/authentication.service.js -------------------------------------------------------------------------------- /src/_services/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/_services/index.js -------------------------------------------------------------------------------- /src/_services/user.service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/_services/user.service.js -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/index.html -------------------------------------------------------------------------------- /src/index.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/src/index.jsx -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-role-based-authorization-example/HEAD/webpack.config.js --------------------------------------------------------------------------------