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 · 0 comments
Open

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant