Skip to content

Commit 4afa3f2

Browse files
authored
Merge pull request #15 from RaspberryPiFoundation/force-signup-param
Allows force_signup param to be passed to identity provider
2 parents 8fdde64 + 49cbceb commit 4afa3f2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/omniauth-rpi/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module OmniAuth
22
module Rpi
3-
VERSION = '1.1.0'.freeze
3+
VERSION = '1.2.0'.freeze
44
end
55
end

lib/omniauth/strategies/hydra0.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Hydra0 < OmniAuth::Strategies::OAuth2
1010

1111
def authorize_params
1212
super.tap do |params|
13-
%w[scope client_options].each do |v|
13+
%w[scope client_options force_signup].each do |v|
1414
params[v.to_sym] = request.params[v] if request.params[v]
1515
end
1616
end

lib/omniauth/strategies/hydra1.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ class Hydra1 < OmniAuth::Strategies::OAuth2
1111
authorize_url:'https://auth-v1.raspberrypi.org/oauth2/auth',
1212
token_url: 'https://auth-v1.raspberrypi.org/oauth2/token'
1313
}
14-
14+
1515
def authorize_params
1616
super.tap do |params|
17-
%w[scope client_options].each do |v|
17+
%w[scope client_options force_signup].each do |v|
1818
params[v.to_sym] = request.params[v] if request.params[v]
1919
end
2020
end

0 commit comments

Comments
 (0)