# Auth Components

Authentication is a fairly complex topic, but like most complex topics it can be broken down into smaller parts.

## ActiveRecord validations

* What are different types of validations?
* Which ones could be useful?
* Describe 3 use cases.

## ActionController filters?

* What is an ActionController filter?
* What are different types of ActionController filters?
* Describe 3 use cases of filters.

## has\_secure\_password

* What is `has_secure_password`?
* How does it work (in Rails)?


---

# 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://tmdarneille.gitbook.io/seirfx/rails/rails-auth-1-m/components.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.
