GumGum Tech Blog
Published in

GumGum Tech Blog

Let The Right One In…With Spring Security Annotations

Photo by Clément Falize on Unsplash

The Setup

Schema for our Example
Users.kt
Company.kt
CompanyData.kt, assume uniqueness for (companyId, data) pair
CompanyDataServiceImpl.java
Photo by Dima Pechurin on Unsplash

Shutting The Door

CompanyUserAuthorization.java
CompanyDataServiceImpl.java with authorization
Photo by Sheldon Kennedy on Unsplash

Expanding on this

Photo by David Menidrey on Unsplash

Wrapping Up

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store