Skip to content

Commit

Permalink
Added docs showing how to integrate omniauth with rack_csrf
Browse files Browse the repository at this point in the history
Fixes #1069
  • Loading branch information
HoneyryderChuck committed May 16, 2022
1 parent f35c0bb commit 7413f4f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ environment information on the callback request. It is entirely up to
you how you want to implement the particulars of your application's
authentication flow.

## rack_csrf

`omniauth` is not OOTB-compatible with [rack_csrf](https://github.com/baldowl/rack_csrf). In order to do so, the following code needs to be added to the application bootstrapping code:

```ruby
OmniAuth::AuthenticityTokenProtection.default_options(key: "csrf.token", authenticity_param: "_csrf")
```

## Rails (without Devise)
To get started, add the following gems
Expand Down

0 comments on commit 7413f4f

Please sign in to comment.