Feature: support CanLoad and CanActivateChild implementation in KeycloakAuthGuard
See original GitHub issueBug Report or Feature Request (mark with an x
)
- [ ] bug report -> please search for issues before submitting
- [x ] feature request
Versions.
Repro steps.
The log given by the failure.
Desired functionality.
Can we extend KeycloakAuthGuard to support CanLoad and CanActivateChild.
This will be very useful for lazy routed modules.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Route Guards — Angular. canActivate vs canActivateChild vs…
canLoad ; canActivateChild; canActivate; resolve. I'm going to explain each type and how to build a guard service, and when to use each...
Read more >How to test Angular AuthGuard - examples for the CanActivate ...
An Angular project with a base guard and authentication service implemented. This example requires the public isLoggedIn() method in the service ...
Read more >TS2416: Property 'canActivate' in type 'MyGuard' is not ...
The error you are facing is because you copied the code that is for a different version of Angular than what you are...
Read more >CanActivateChild - Angular
Interface that a class can implement to be a guard deciding if a child route ... The following example implements a CanActivateChild function...
Read more >The difference between the canActivate and canActivateChild ...
canActivate. Interface that a class can implement to be a guard deciding if a route can be activated. If all guards return true,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My current workaround/solution, for whoever needs it. @mauriciovigolo if you would like a MR, let me know.
Assuming that a route uses lazy load:
@NehalDamania, I will take a look at your feature request. I’m pretty busy last days, so as soon as I have some time available I will send you a feedback. Thanks!