Skip to content

Commit

Permalink
Merge pull request #16 from RaspberryPiFoundation/switch-force-login-…
Browse files Browse the repository at this point in the history
…to-login-options

Switches the force_login param for a more general login_options param
  • Loading branch information
grega authored Oct 14, 2021
2 parents 4afa3f2 + 875dd9d commit e947250
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.0] - 2021-10-14
### Changed
- Replaced force_signup param with a more extensible login_options param

## [1.2.0] - 2021-09-30
### Added
- Added force_signup param to enable passing of custom param to the identity provider

## [1.1.0] - 2021-09-10
### Added
- Changelog in preparation for publishing app to rubygems.org
Expand Down
2 changes: 1 addition & 1 deletion lib/omniauth-rpi/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module OmniAuth
module Rpi
VERSION = '1.2.0'.freeze
VERSION = '1.3.0'.freeze
end
end
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/hydra0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Hydra0 < OmniAuth::Strategies::OAuth2

def authorize_params
super.tap do |params|
%w[scope client_options force_signup].each do |v|
%w[scope client_options login_options].each do |v|
params[v.to_sym] = request.params[v] if request.params[v]
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/hydra1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Hydra1 < OmniAuth::Strategies::OAuth2

def authorize_params
super.tap do |params|
%w[scope client_options force_signup].each do |v|
%w[scope client_options login_options].each do |v|
params[v.to_sym] = request.params[v] if request.params[v]
end
end
Expand Down

0 comments on commit e947250

Please sign in to comment.