Skip to content

Commit

Permalink
Merge pull request #15 from RaspberryPiFoundation/force-signup-param
Browse files Browse the repository at this point in the history
Allows force_signup param to be passed to identity provider
  • Loading branch information
grega authored Sep 30, 2021
2 parents 8fdde64 + 49cbceb commit 4afa3f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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.1.0'.freeze
VERSION = '1.2.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].each do |v|
%w[scope client_options force_signup].each do |v|
params[v.to_sym] = request.params[v] if request.params[v]
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/omniauth/strategies/hydra1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class Hydra1 < OmniAuth::Strategies::OAuth2
authorize_url:'https://auth-v1.raspberrypi.org/oauth2/auth',
token_url: 'https://auth-v1.raspberrypi.org/oauth2/token'
}

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

0 comments on commit 4afa3f2

Please sign in to comment.