Skip to main content

max dev blog & other stuff

Tag: Java

Fix JetBrains IDEA IntelliJ not working on bspwm (gray window issue)

An easily reproducible issue I’ve recently been running into is JetBrains IDEs not being displayed properly in bspwm[0] environment. Instead of IDE graphical interface, only a gray solid window is being shown.

There’s nothing innovatory about this fix, however it seems like it has never been mentioned in this particular context, meaning running IntelliJ on bspwm and xorg.

Mocking @AuthenticationPrincipal with custom UserDetails object

Lately I’ve been working on a project involving Spring Boot and Spring Security. It includes stateless API for authenticating users and restricting access to specific HTTP endpoints. I followed this Stateless Authentication with Spring Security[0] article. Sessions associated with users are stored in the database table, while users authenticate with session ID in Authorization request header. Pretty much what JWT does, except for I didn’t know about its existene at the moment, lol.