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

Bugfix/idporten cors #3653

Merged
merged 8 commits into from
Oct 15, 2024
Merged

Bugfix/idporten cors #3653

merged 8 commits into from
Oct 15, 2024

Conversation

stigus
Copy link
Contributor

@stigus stigus commented Oct 14, 2024

This pull request includes several changes to improve error handling, logging, and configuration in the dolly-frontend application. The most important changes include adding error handling in the IdportenSecurityConfig class, modifying the LogController and SessionController for better error logging, and updating the React components and configuration files for enhanced error reporting and build optimization.

The issue itself was not in our app, but with outdated credentials in the custom bankid client we use, but with better logging we can catch issues like this earlier.

Error Handling Improvements:

Logging Enhancements:

Frontend Error Reporting:

Build Configuration:

#deploy-idporten-frontend
#deploy-idporten-frontend
#deploy-idporten-frontend
#deploy-idporten-frontend
#deploy-idporten-frontend
#deploy-idporten-frontend
@stigus stigus requested a review from a team as a code owner October 14, 2024 13:33
Copy link
Contributor

@krharum krharum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -78,10 +80,17 @@ public SecurityWebFilterChain configure(ServerHttpSecurity http, ServerOAuth2Aut
).permitAll()
.anyExchange().authenticated())
.oauth2Login(oAuth2LoginSpec -> oAuth2LoginSpec
.authenticationFailureHandler((webFilterExchange, exception) -> {
log.error("Failed to authenticate user", exception);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supert 👍

@stigus stigus merged commit f00ed2c into master Oct 15, 2024
185 checks passed
@stigus stigus deleted the bugfix/idporten-cors branch October 15, 2024 08:37
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.

2 participants