├── .editorconfig ├── .gitignore ├── README.md ├── angular.json ├── e2e ├── protractor.conf.js ├── src │ ├── app.e2e-spec.ts │ └── app.po.ts └── tsconfig.e2e.json ├── package.json ├── screenshot └── authGuard.gif ├── src ├── app │ ├── app.component.css │ ├── app.component.html │ ├── app.component.spec.ts │ ├── app.component.ts │ ├── app.module.ts │ ├── app.routes.ts │ ├── dashboard │ │ ├── admin │ │ │ └── admin.component.ts │ │ ├── dashboard.module.spec.ts │ │ ├── dashboard.module.ts │ │ ├── dashboard.routes.ts │ │ ├── home │ │ │ └── home.component.ts │ │ └── layout │ │ │ └── layout.component.ts │ ├── guards │ │ ├── auth-guard.service.ts │ │ └── role-guard.service.ts │ ├── login │ │ ├── login.component.html │ │ └── login.component.ts │ ├── page-not-found │ │ └── page-not-found.component.ts │ └── services │ │ └── auth.service.ts ├── assets │ └── .gitkeep ├── browserslist ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── favicon.ico ├── index.html ├── karma.conf.js ├── main.ts ├── polyfills.ts ├── styles.css ├── test.ts ├── tsconfig.app.json ├── tsconfig.spec.json └── tslint.json ├── tsconfig.json └── tslint.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/README.md -------------------------------------------------------------------------------- /angular.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/angular.json -------------------------------------------------------------------------------- /e2e/protractor.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/e2e/protractor.conf.js -------------------------------------------------------------------------------- /e2e/src/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/e2e/src/app.e2e-spec.ts -------------------------------------------------------------------------------- /e2e/src/app.po.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/e2e/src/app.po.ts -------------------------------------------------------------------------------- /e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/e2e/tsconfig.e2e.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/package.json -------------------------------------------------------------------------------- /screenshot/authGuard.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/screenshot/authGuard.gif -------------------------------------------------------------------------------- /src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/app.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/app.component.html -------------------------------------------------------------------------------- /src/app/app.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/app.component.spec.ts -------------------------------------------------------------------------------- /src/app/app.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/app.component.ts -------------------------------------------------------------------------------- /src/app/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/app.module.ts -------------------------------------------------------------------------------- /src/app/app.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/app.routes.ts -------------------------------------------------------------------------------- /src/app/dashboard/admin/admin.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/dashboard/admin/admin.component.ts -------------------------------------------------------------------------------- /src/app/dashboard/dashboard.module.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/dashboard/dashboard.module.spec.ts -------------------------------------------------------------------------------- /src/app/dashboard/dashboard.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/dashboard/dashboard.module.ts -------------------------------------------------------------------------------- /src/app/dashboard/dashboard.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/dashboard/dashboard.routes.ts -------------------------------------------------------------------------------- /src/app/dashboard/home/home.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/dashboard/home/home.component.ts -------------------------------------------------------------------------------- /src/app/dashboard/layout/layout.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/dashboard/layout/layout.component.ts -------------------------------------------------------------------------------- /src/app/guards/auth-guard.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/guards/auth-guard.service.ts -------------------------------------------------------------------------------- /src/app/guards/role-guard.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/guards/role-guard.service.ts -------------------------------------------------------------------------------- /src/app/login/login.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/login/login.component.html -------------------------------------------------------------------------------- /src/app/login/login.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/login/login.component.ts -------------------------------------------------------------------------------- /src/app/page-not-found/page-not-found.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/page-not-found/page-not-found.component.ts -------------------------------------------------------------------------------- /src/app/services/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/app/services/auth.service.ts -------------------------------------------------------------------------------- /src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/browserslist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/browserslist -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /src/environments/environment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/environments/environment.ts -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/favicon.ico -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/index.html -------------------------------------------------------------------------------- /src/karma.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/karma.conf.js -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/polyfills.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/polyfills.ts -------------------------------------------------------------------------------- /src/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/styles.css -------------------------------------------------------------------------------- /src/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/test.ts -------------------------------------------------------------------------------- /src/tsconfig.app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/tsconfig.app.json -------------------------------------------------------------------------------- /src/tsconfig.spec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/tsconfig.spec.json -------------------------------------------------------------------------------- /src/tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/src/tslint.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theoomoregbee/AuthGuard/HEAD/tslint.json --------------------------------------------------------------------------------