Authentication library
Authentication library
Authentication library handles all operations associated with authentication and authorization, like login, logout, permission check, role checks etc.
Authentication library contains:
-
Guards – used to guard routes
- Auth guard – authentication guard checks if user is authenticated
-
Services
- AsolAuthService – main auth service, also contains interceptors to add token to API requests
- AsolRoleService – service used to check user for specific role
- AsolSessionStorageService – service to manage current selected mandant
- AsolTenantService – service for tenant management
- AsolRedirectService – redirects user based on claims
- AsolConfirmEmailService – used to confirm email
- AsolPermissionService – service to manage permissions
- AsolIdentityManagerService – service used to communicate with IDM for permissions
- AsolImpersonationService - used to get impersonation token and store it
-
Modules
- Account
- Logging page
- Error pages
- App info
-
Shared
- Constants
- ASOL_CLAIMS
- AUTH_PAGE - contains list of the auth pages.
- ASOL_CAPTCHA_ACTIONS - captcha actions allowed
- Pipes
- AsolHasPermissionPipe - pipe which handles permissions of the user
- AsolPagePermissionsLoaded - pipe which handles preloading of the permissions for the page
- Functions – functions for base href parse, extract app code, etc.
- Enums – permission enum
- Constants
Authentication library did contain these deprecations:
- RoleService – service used to check user for specific role
- removed in the versiom 14.4.0
- IsInRole pipe
- removed in the version 14.4.0