Angular 4.3.0+ Authentication
This package provides authentication module with interceptor
Package is given in completely 100% pure TypeScript.
Authentication modules provides ability to attach authentication token automatically to the headers (through http interceptors), refresh token functionality, guards for protected or public pages and more.
AuthServiceinterface to implement it with your custom Authentication service, e.g.:
PublicGuardfor public routes and
ProtectedGuardfor protected respectively, e.g.:
- Create additional
AuthenticationModuleand provide important providers and imports, e.g.:
PROTECTED_FALLBACK_PAGE_URI - main protected page to be redirected to, in case if user will reach public route, that is protected
PublicGuard and will be authenticated
PUBLIC_FALLBACK_PAGE_URI- main public page to be redirected to, in case if user will reach protected route, that is protected by
ProtectedGuardand won't be authenticated
AUTH_SERVICE- Authentication service token providers
- Provide your