Open TDesjardins opened 6 months ago
@TDesjardins could you provide a working example? Thanks a lot!
Hey @molntamas, I'm working to update the documentation and examples. It will be available soonish this or in the following week.
Hey @molntamas, I'm working to update the documentation and examples. It will be available soonish this or in the following week.
Thank you!
Maybe this helps someone:
in order to have the bearerInterceptor working while using the standalone configuration it is necessary to add the withInterceptorsFromDi()
feature in provideHttpClient
this is how i got it working
export const appConfig: ApplicationConfig = {
providers: [
provideHttpClient(withInterceptorsFromDi()),
importProvidersFrom([KeycloakAngularModule]),
{
provide: APP_INITIALIZER,
useFactory: initializeKeycloak,
multi: true,
deps: [KeycloakService],
},
};
Bug Report or Feature Request (mark with an
x
)Desired functionality.
The current setup instructions in readme.md only cover the NgModules approach. It would be useful to also have infos about how to setup a standalone bootstrap / components app.
I could provide a working example but havn't tested the Auth Guard yet.