Fix rescuing of application errors when call_app! is used.
As a consequence of the changes that were merged in #689, errors
thrown by strategies that utilize other_phase (or more specifically
call_app!), would be caught by omniauth, causing headaches for folks
looking to have those errors handled by their application. This
should allow for errors that come from the app to pass through, while
passing errors that come from the authentication phases to the fail!
handler.
Fix for incorrect order of request_validation_phase in test_mode.
@jsdalton gave an awesome report of the issue present in test_mode in #1033
The current implementation of mock_call was verifying the token for all requests, regardless of whether the current path is on the omniauth request path. The change was introduced recently in 1b784ff. See #1032 for details.
This creates two problems:
When test mode is on, the authenticity verification logic is run inappropriately against requests where this may not even be wanted.
The behavior varies from actual production behavior, potentially allowing bugs to be introduced by unwary developers.
Note that this bug was only present when OmniAuth was configured for test_mode and using the mock_call phases.
Allow passing rack-protection configuration to default request_validation_phase
This release now properly allows an instance of OmniAuth::AuthenticityTokenProtection (with passed in rack-protection configuration) to be used as the request_validation_phase.
This fixes a compatibility issue introduced in our previous security
release when using domain: :all with a two letter but single level top
level domain domain (like .ca, rather than .co.uk).
As of v2.0.0 of this gem, it will require OmniAuth 2.0.0. This is due to changes that came with OmniAuth that required a breaking change in this gem. Because we changed the strategy's code, you should not need to change any omniauth-github specific code.
You should refer to OmniAuth's v2.0.0 release and/or the v2.0 upgrade guide when upgrading OmniAuth to v2.0.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/mint-lang/mint-website-rails/network/alerts).
Bumps omniauth, rack-cors, rails and omniauth-github. These dependencies needed to be updated together. Updates
omniauth
from 1.9.2 to 2.1.1Release notes
Sourced from omniauth's releases.
... (truncated)
Commits
d2fd0fc
v2.1.1 releasef66dd2d
Merge pull request #1092 from shreyakurian02/fix_nil_error_in_callback_pathdece21b
Fixed nil error in callback_path7d90ba2
Update SECURITY.md66110da
Merge pull request #1070 from HoneyryderChuck/patch-17413f4f
Added docs showing how to integrate omniauth with rack_csrff35c0bb
Fix badges1df974b
Merge pull request #1065 from omniauth/new-CI-workflows56b369f
Update badgesdce31d7
Separate jruby and truffle ruby workflowsUpdates
rack-cors
from 1.1.1 to 2.0.0Changelog
Sourced from rack-cors's changelog.
Commits
97882eb
Support custom protocols as origins70f9126
README: Exampe for start & end string anchors908ea29
Remove incorrect wildcard usage from READMEb718a19
Update Rails6 example3b6b5af
Update rack examplea37c33e
Update Rails5 exampled83baa7
Link to SO about testing CORS47af8a8
Updates to note common issues.43a1882
Update .travis.ymlb528e2b
Update README.mdUpdates
rails
from 6.0.3.6 to 6.1.7.2Release notes
Sourced from rails's releases.
... (truncated)
Commits
f0c5e60
Preparing for 6.1.7.2 release3e0c1a5
Version 6.1.7.21e5011d
Merge pull request #47087 from jhawthorn/cookie_domainc443466
Version 6.1.7.13db858c
Make sanitize_as_sql_comment more strict8dc4595
Avoid regex backtracking on If-None-Match headera7cda7e
Avoid regex backtracking in Inflector.underscore90e8a90
Use string#split instead of regex for domain parts4f44aa9
Added integer width check to PostgreSQL::Quoting9ab3375
Version 6.1.7Updates
omniauth-github
from 1.4.0 to 2.0.1Release notes
Sourced from omniauth-github's releases.
Commits
0ac46b5
Release 2.0.1fa3e9cf
Merge pull request #102 from jessieay/master684a74a
Upgrade omniauth-oauth2 dependency1633cbb
Merge pull request #100 from petergoldstein/feature/add_modern_rubies23cfa75
Add Ruby 2.7, 3.0, and 3.1 to the CI matrixd2d9e01
Merge pull request #96 from gogainda/patch-14ac10c7
Update ruby.ymlf4e28d9
Update ruby.yml027b861
Update ruby.yml1f77226
Merge pull request #95 from BobbyMcWho/chores-2020-01-12Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/mint-lang/mint-website-rails/network/alerts).