-
Notifications
You must be signed in to change notification settings - Fork 1
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
Beacon is causing problems when using Spring Security and Collaboration Engine together #41
Comments
As a workaround, I did a custom request handler to my Vaadin project, and handled The implementation is here: https://github.com/Peppe/vabber/blob/main/src/main/java/com/example/application/security/CustomRequestCache.java#L23-L30 |
If we assume that applications use One obvious candidate would be to use the |
For reference, my project is modeled based on the example found at https://github.com/vaadin/spring/tree/master/vaadin-spring-tests/test-spring-security-flow/src/main/java/com/vaadin/flow/spring/flowsecurity and the tutorial at https://vaadin.com/learn/tutorials/securing-your-app-with-spring-security/setting-up-spring-security. |
This also causes problems with live reload. When you have collaboration engine in your app and do a change (with Spring Boot Dev Tools enabled) then the app will reload and you will be redirected to the login view, as expected. However, after logging in you will end up on
|
@tulioag for me the beacon is still causing problems in combination with the spring-boot-keycloak-adapter. |
Hi @chrosim. I'm no longer working on this project. IIRC, the url was changed to the servlet-root so the beacon is now just another type of Flow request. I suggest that you open a new issue about that. |
Describe the bug
Collaboration Engine adds beacon HTTP calls to your app. Adding Spring Security to your app denies access to many urls by default, including
/beacon/*
. When you press the login button in your app, maybe four times out of five it works correctly. But every now and then, it will instead download a zero byte file with a UUID name. The file is downloaded due to a request to ie/beacon/ec3fff5a-2f77-4318-90c6-4104460637bd
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
You don't have to do anything extra about CE when using it in a Spring Security -secured Vaadin app and login works every time.
Versions
- Vaadin version: V20
- Collaboration Engine version: V3.1
- Java version: 11
- OS version: Mac OS
The text was updated successfully, but these errors were encountered: