# Spring Security

Spring Security in pure Grails application, where no Vaadin is involved, is provided by [spring-security-core](http://grails.org/plugin/spring-security-core) plugin, because if we work with pure Grails, the controllers are the end points and we can define security at that level, by adding Spring security annotations. This is not case for Vaadin application.

In Vaadin applications we use Navigator instead of Grails controllers or we render different UI components based on user's roles. In this chapter we will explore way to do using [Spring security framework](<http://docs.spring.io/spring-security/site/docs/3.2.5.RELEASE/reference/htmlsingle/#core-components >).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ondrej-kvasnovsky-2.gitbook.io/vaadin-on-grails/security.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
