All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog. This project adheres to Semantic Versioning.
- Support
omniauth
versions>= 1.9
but< 3
. i.e., support version2
which addresses some CVEs. - Standardize syntax and style via Standard.rb
- Loosen
omniauth-oauth2
requirement to allow>= 1.7.0
. With this change, blocks give to dynamically determine the:scope
argument will be passed the Rackenv
, rather than an instance of theRack::Request
. See the Upgrading to 1.0 docs for more. - Remove
AuthUrl
andApiUrl
constants fromOmniAuth::Strategies::Heroku
. These were internal details, not meant to be part of the public API. - Require Ruby
>= 2.3.0
. We were only supporting that anyway, but now it's explicit. However, we do recommend only running on actively supported Rubies.
-
Lock to
omniauth-oauth2 ~> 1.6.0
to fix regression in dynamic:scope
option. Withomniauth-oauth2 >= 1.7.0
, the block is passed the Rackenv
as the parameter. This breaks our expectation the will receive aRack::Request
instance as the argument to dynamically determine the:scope
option. i.e., this broken:use OmniAuth::Builder do provider :heroku, ENV.fetch("HEROKU_OAUTH_ID"), ENV.fetch("HEROKU_OAUTH_SECRET"), scope: ->(request) { request.params["scope"] || "identity" } end
See PR #22 for more context, workaround, etc...