Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a guide for using SSR with Angular 19 and provideKeycloak? #612

Open
soungsid opened this issue Jan 14, 2025 · 3 comments
Open
Assignees
Labels
documentation This issue/PR is related to documentation or improvement thereof. enhancement This issue/PR is an enhancement or new feature.

Comments

@soungsid
Copy link

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search for issues before submitting
- [x] feature request

Versions.

keycloak-angular 19

Repro steps.

The log given by the failure.

Desired functionality.

I'm working with Angular 19 and keycloak-angular for authentication. I'm trying to implement Server-Side Rendering (SSR) using Angular Universal, and I want to use the provideKeycloak provider for Keycloak authentication.

However, I'm unsure how to properly set up provideKeycloak in an SSR environment, as there are issues with accessing the window object and configuring the provider correctly.

What I’m looking for:

  • Is there an official guide or example on how to configure provideKeycloak with SSR in Angular 19?
  • Specifically, how should I handle the server-side environment when using Keycloak with Angular Universal?
  • Any known issues or best practices for SSR with keycloak-angular in Angular 19?

I would appreciate any help or links to documentation.

Thank you in advance!

@soungsid
Copy link
Author

any comment on this request?

@mauriciovigolo
Copy link
Owner

Hi @soungsid,
I'll be working on an example SSR application using the library, along with documentation to support it. While I can't commit to a specific deadline, I’m aiming to have it ready by the end of February.

@mauriciovigolo mauriciovigolo self-assigned this Feb 2, 2025
@mauriciovigolo mauriciovigolo added enhancement This issue/PR is an enhancement or new feature. documentation This issue/PR is related to documentation or improvement thereof. labels Feb 2, 2025
@karolix1279
Copy link

Hi,
Are there any updates regarding SSR? Is the end of February deadline feasible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This issue/PR is related to documentation or improvement thereof. enhancement This issue/PR is an enhancement or new feature.
Projects
None yet
Development

No branches or pull requests

3 participants