Skip to content

Glossary: Spring Boot Beyond the Basics

Role

Also written: roles, authority, ROLE_

An authority (a named permission) whose name starts with `ROLE_`, such as `ROLE_STAFF`. `hasRole("STAFF")` checks for exactly that.

Where the book teaches it

Related terms

AuthorizationMethod securityFACTOR_BEARER