Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
angular-auth-oidc-client
dependency toclient/package.json
.auth-config.ts
to load OIDC configuration dynamically based on the environment.LoginService
to manage authentication logic including login, logout, and session refresh.Environment Configuration:
angular.json
to include file replacements for different environments and added proxy configuration [1] [2].environment.ts
andenvironment.development.ts
to define environment-specific settings [1] [2].Application Routing:
app.routes.ts
to include new routes forhome
andlogged-out
components and added route guards for protected routes.app.config.ts
to provide HTTP interceptors and OIDC configuration.New Components:
HomeComponent
to serve as the landing page after login and handle login/logout actions [1] [2] [3].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.