Skip to content

Latest commit

 

History

History
264 lines (159 loc) · 13.6 KB

CHANGELOG.md

File metadata and controls

264 lines (159 loc) · 13.6 KB

Change Log

v3.2.0 (2023-07-14)

Full Changelog

Added

Fixed

  • fix: upgrade to Sinatra 3 and use Rack::Session::Cookie in tests #165 (stevehobbsdev)

v3.1.1 (2023-03-01)

Full Changelog

Fixed

  • fix: upgrade to Sinatra 3 and use Rack::Session::Cookie in tests #165 (stevehobbsdev)

v3.1.0 (2022-11-04)

Full Changelog

Added

Changed

Fixed

Security

v3.0.0 (2021-04-14)

Version 3.0 introduces Omniauth v2.0 which addresses CVE-2015-9284. Omniauth now defaults to only allow POST as the allowed request_phase method. This was previously handled through the recommended mitigation using the omniauth-rails_csrf_protection v0.x.x gem to provide CSRF protection.

Upgrading to omniauth-rails_csrf_protection v1.0.0

If you are using omniauth-rails_csrf_protection to provide CSRF protection, you will need to be upgrade to 1.x.x.

BREAKING CHANGES

Now that OmniAuth now defaults to only POST as the allowed request_phase method, if you aren't already, you will need to convert any login links to use form helpers with the POST method.

# OLD -- GET request
<a href='/auth/auth0'>Login</a>

# NEW Example #1 -- POST request
<%= link_to 'Login', 'auth/auth0', method: :post %>

# NEW Example #2 -- POST request
<%= button_to 'Login', 'auth/auth0', method: :post %>

# NEW Example #3 -- POST request
<%= form_tag('/auth/auth0', method: :post) do %>
  <button type='submit'></button>
<% end %>

Allowing GET Requests

In the scenario you absolutely must use GET requests as an allowed request method for authentication, you can override the protection provided with the following config override:

# Allowing GET requests will expose you to CVE-2015-9284
OmniAuth.config.allowed_request_methods = [:get, :post]

v2.6.0 (2021-04-01)

Full Changelog

Added

v2.5.0 (2021-01-21)

Full Changelog

Added

Changed

Fixed

v2.4.2 (2021-01-19)

Full Changelog

Fixed

  • Lock Omniauth to 1.9 in gemspec

v2.4.1 (2020-10-08)

Full Changelog

Fixed

v2.4.0 (2020-09-22)

Full Changelog

Security

Added

v2.3.1 (2020-03-27)

Full Changelog

Fixed bugs:

v2.3.0 (2020-03-06)

Full Changelog

Added

v2.2.0 (2018-04-18)

Full Changelog

Closed issues

  • It supports custom domain? #71
  • Valid Login, No Details: email=nil image=nil name="github|38257089" nickname=nil #70

Added

Changed

v2.1.0 (2018-10-30)

Full Changelog

Closed issues

  • URL should be spelled uppercase outside of code #64
  • Add prompt=none authorization param handler #58
  • Could not find a valid mapping for path "/auth/oauth2/callback" #56
  • I had to downgrade my gems to use this strategy :-( #53
  • CSRF detected #49
  • /auth/:provider route not registered? #47

Added

Changed

Fixed

v2.0.0 (2017-01-25)

Full Changelog

Updated library to handle OIDC conformant clients and OAuth2 features in Auth0. This affects how the credentials and info attributes are populated since the payload of /oauth/token and /userinfo are different when using OAuth2/OIDC features.

The credentials hash will always have an access_token and might have a refresh_token (if it's allowed in your API settings in Auth0 dashboard and requested using offline_access scope) and an id_token (scope openid is needed for Auth0 to return it).

The info object will use the OmniAuth schema after calling /userinfo:

  • name: name attribute in userinfo response or sub if not available.
  • email: email attribute in userinfo response.
  • nickname: nickname attribute in userinfo response.
  • image: picture attribute in userinfo response.

Also in extra will have in raw_info the full /userinfo response.

Fixed

  • Use image attribute of omniauth instead of picture #45 (hzalaz)
  • Rework strategy to handle OAuth and OIDC #44 (hzalaz)
  • lock v10 update, dependencies update #41 (Amialc)

v1.4.2 (2016-06-13)

Full Changelog

Added

Changed

Fixed

v1.4.1 (2015-11-18)

Full Changelog

Merged pull requests:

  • Updating the strategy to set the refresh token in the credentials #14 (LindseyB)
  • Update README.md #13 (Annyv2)
  • Update home.js #12 (Annyv2)
  • Add nested module in version.rb #9 (l4u)

v1.4.0 (2015-06-01)

Merged pull requests:

* This Change Log was automatically generated by github_changelog_generator