title: Spring boot security in kotlin with users and roles
body: <p>I have to work on an application that old interns started. The backend is made with spring-boot and using Kotlin, which I'm very new to both. The backed is a RESTful API and I need to implement an authentication and authorizations to limit the access to specific users the CRUD methods.</p>
  <p>There's basically two user roles I need to create, an admin and a moderator one that can have access to less methods.</p>
  <p>Does anyone have a guide on to how to make it possible?</p>
  <p>I've found <a href="https://bezkoder.com/spring-boot-jwt-authentication/" rel="nofollow noreferrer">this</a> tutorial which seems like to do what I'm looking for but it's in java and I'm not able to code everything back into Kotlin.</p>
  <p>Also, add access restriction on a websocket as well?</p>