Compare commits

...

8 Commits

Author SHA1 Message Date
Bobby McDonald 7d90ba21c2
Update SECURITY.md 2022-08-16 11:07:07 -04:00
Bobby McDonald 66110da85e
Merge pull request #1070 from HoneyryderChuck/patch-1
Added docs showing how to integrate omniauth with rack_csrf
2022-06-09 22:44:14 -04:00
Tiago 7413f4fd73
Added docs showing how to integrate omniauth with rack_csrf
Fixes #1069
2022-05-16 23:08:32 +01:00
Bobby McDonald f35c0bb865 Fix badges 2022-04-13 15:09:38 -04:00
Bobby McDonald 1df974b78c
Merge pull request #1065 from omniauth/new-CI-workflows
Separate jruby and truffle ruby workflows
2022-04-13 15:06:26 -04:00
Bobby McDonald 56b369f0cb Update badges 2022-04-13 15:03:55 -04:00
Bobby McDonald dce31d78d9 Separate jruby and truffle ruby workflows 2022-04-13 14:58:37 -04:00
Bobby McDonald 75253f85e2 Prep for next release cycle 2022-04-13 14:37:16 -04:00
5 changed files with 72 additions and 26 deletions

30
.github/workflows/jruby.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: JRuby
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
jruby: [jruby] # TODO: Add back jruby-head once we figure out why there's a bundler mismatch
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.jruby }}
bundler-cache: true
- name: Install dependencies
env:
JRUBY_OPTS: --debug
run: bundle install
- name: Run tests
env:
JRUBY_OPTS: --debug
run: bundle exec rake

View File

@ -20,7 +20,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu, macos] os: [ubuntu, macos]
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, head, debug, truffleruby, truffleruby-head] ruby: [2.5, 2.6, 2.7, '3.0', 3.1, head, debug]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Ruby - name: Set up Ruby
@ -32,28 +32,6 @@ jobs:
run: bundle install run: bundle install
- name: Run tests - name: Run tests
run: bundle exec rake run: bundle exec rake
test-jruby:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
jruby: [jruby] # TODO: Add back jruby-head once we figure out why there's a bundler mismatch
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.jruby }}
bundler-cache: true
- name: Install dependencies
env:
JRUBY_OPTS: --debug
run: bundle install
- name: Run tests
env:
JRUBY_OPTS: --debug
run: bundle exec rake
frozen-string-compat: frozen-string-compat:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:

26
.github/workflows/truffle_ruby.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: TruffleRuby
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos]
ruby: [truffleruby, truffleruby-head]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake

View File

@ -1,16 +1,20 @@
# OmniAuth: Standardized Multi-Provider Authentication # OmniAuth: Standardized Multi-Provider Authentication
[![Gem Version](http://img.shields.io/gem/v/omniauth.svg)][gem] [![Gem Version](http://img.shields.io/gem/v/omniauth.svg)][gem]
[![Build Status](http://img.shields.io/travis/omniauth/omniauth.svg)][travis] [![Ruby](https://github.com/omniauth/omniauth/actions/workflows/main.yml/badge.svg)][githubactions]
[![TruffleRuby](https://github.com/omniauth/omniauth/actions/workflows/truffle_ruby.yml/badge.svg)][githubactionstruffle]
[![JRuby](https://github.com/omniauth/omniauth/actions/workflows/jruby.yml/badge.svg)][githubactionsjruby]
[![Code Climate](https://api.codeclimate.com/v1/badges/ffd33970723587806744/maintainability)][codeclimate] [![Code Climate](https://api.codeclimate.com/v1/badges/ffd33970723587806744/maintainability)][codeclimate]
[![Coverage Status](http://img.shields.io/coveralls/omniauth/omniauth.svg)][coveralls] [![Coverage Status](http://img.shields.io/coveralls/omniauth/omniauth.svg)][coveralls]
[gem]: https://rubygems.org/gems/omniauth [gem]: https://rubygems.org/gems/omniauth
[travis]: http://travis-ci.org/omniauth/omniauth [githubactions]: https://github.com/omniauth/omniauth/actions/workflows/main.yml
[githubactionstruffle]: https://github.com/omniauth/omniauth/actions/workflows/truffle_ruby.yml
[githubactionsjruby]: https://github.com/omniauth/omniauth/actions/workflows/jruby.yml
[codeclimate]: https://codeclimate.com/github/omniauth/omniauth [codeclimate]: https://codeclimate.com/github/omniauth/omniauth
[coveralls]: https://coveralls.io/r/omniauth/omniauth [coveralls]: https://coveralls.io/r/omniauth/omniauth
This is the documentation for our latest release [v2.1.0](https://github.com/omniauth/omniauth/releases/tag/v2.1.0). This is the documentation for the in-development branch of OmniAuth. You can view the documentation for our latest release v2.1.0 [here](https://github.com/omniauth/omniauth/releases/tag/v2.1.0).
## An Introduction ## An Introduction
OmniAuth is a library that standardizes multi-provider authentication for OmniAuth is a library that standardizes multi-provider authentication for
@ -97,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 you how you want to implement the particulars of your application's
authentication flow. 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) ## Rails (without Devise)
To get started, add the following gems To get started, add the following gems

View File

@ -7,6 +7,7 @@ currently being supported with security updates.
| Version | Supported | | Version | Supported |
| ------- | ------------------ | | ------- | ------------------ |
| 2.1.x | :white_check_mark: |
| 2.0.x | :white_check_mark: | | 2.0.x | :white_check_mark: |
| <= 1.9.1 | :x: | | <= 1.9.1 | :x: |