Skip to content

Commit

Permalink
Bubble up CSRF note
Browse files Browse the repository at this point in the history
  • Loading branch information
janko committed Nov 17, 2024
1 parent a64c309 commit ad0b790
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Add the gem to your project:
$ bundle add rodauth-omniauth
```

> [!NOTE]
> The request validation phase will call Rodauth's CSRF protection, so there is no need for gems like `omniauth-rails_csrf_protection`.

## Usage

You'll first need to create the table for storing external identities:
Expand Down Expand Up @@ -333,10 +337,6 @@ omniauth_on_failure do
end
```

#### CSRF protection

The default request validation phase uses Rodauth's configured CSRF protection, so there is no need for external gems such as `omniauth-rails_csrf_protection`.

### Inheritance

The registered providers are inherited between Rodauth auth classes, so you can have fine-grained configuration for different account types.
Expand Down

0 comments on commit ad0b790

Please sign in to comment.