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

add angular login via keycloak #3

Open
wants to merge 4 commits into
base: angular-material-client
Choose a base branch
from

Conversation

Mankianer
Copy link
Owner

This pull request introduces several changes to integrate OpenID Connect (OIDC) authentication into the Angular client application. The major changes include modifications to the environment configurations, updates to the application routes, and the addition of new services and components to handle authentication.

Authentication Integration:

  • Added angular-auth-oidc-client dependency to client/package.json.
  • Created auth-config.ts to load OIDC configuration dynamically based on the environment.
  • Implemented LoginService to manage authentication logic including login, logout, and session refresh.

Environment Configuration:

  • Updated angular.json to include file replacements for different environments and added proxy configuration [1] [2].
  • Added environment.ts and environment.development.ts to define environment-specific settings [1] [2].

Application Routing:

  • Modified app.routes.ts to include new routes for home and logged-out components and added route guards for protected routes.
  • Updated app.config.ts to provide HTTP interceptors and OIDC configuration.

New Components:

  • Added HomeComponent to serve as the landing page after login and handle login/logout actions [1] [2] [3].
  • Added LoggedOutComponent to display a message when the user is logged out [1] [2] [3].

These changes collectively enhance the application's security by integrating OIDC for user authentication and managing different environments effectively.

+ update dependencies
+ add logged-out component
+ add LandingPage (HomeComponent)
+ add LoginService
* load keycloak config from Backend
* add fallback auth-config
* add client-auth docs
* add environment variablen
* add proxy for dev-backend
* update libs
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

Successfully merging this pull request may close these issues.

1 participant