Skip to content

Migrating from KeycloakAngularModule and APP_INITIALIZER to provideKeycloak() in a ngModules app #655

@Yawarzy

Description

@Yawarzy

Hi! We are currently using the Angular 19, and have updated to the keycloak-angular v19. While going through the migration guide, we noticed that the KeycloakAngularModule and the old way of APP_INITIALIZER has been deprecated, and the recommend way is to use the provideKeycloak(). But our apps still rely on the NgModules, and we are not sure if we will be migrating to the standalone. The documentation for the provideKeycloak assumes we are using the latest standalone API with appConfig, bootstrapApplication etc. So any way of configuring via the provideKeycloak() has failed for us.

Could you please let us know if it's recommended and possible to use the new provideKeycloak() with the NgModules. If not, can we keep using the old legacy way of configuration (as long as we are on the NgModules) ? I have read in the release notes, that these may be removed in future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThis issue is a question.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions