File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ RpiAuth.configure do |config|
4848 config.auth_token_url = ENV .fetch(' AUTH_TOKEN_URL' , nil )
4949 config.auth_client_id = ENV .fetch(' AUTH_CLIENT_ID' , nil )
5050 config.auth_client_secret = ENV .fetch(' AUTH_CLIENT_SECRET' , nil )
51- config.brand = ' brand-name '
51+ config.brand = ' raspberrypi-org '
5252 config.host_url = ENV .fetch(' HOST_URL' , nil )
5353 config.identity_url = ENV .fetch(' IDENTITY_URL' , nil )
5454 config.user_model = ' User'
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class Configuration
2020 :user_model
2121
2222 def initialize
23+ @brand = 'raspberrypi-org'
2324 @bypass_auth = false
2425 @response_type = :code
2526 @client_auth_method = :basic
Original file line number Diff line number Diff line change 66 let ( :auth_url ) { 'https://auth.com:123/' }
77 let ( :auth_token_url ) { 'https://internal.auth.com:456' }
88
9+ it 'sets a default value for brand' do
10+ expect ( configuration . brand ) . to eq 'raspberrypi-org'
11+ end
12+
913 it 'sets a default value for client_auth_method' do
1014 expect ( configuration . client_auth_method ) . to eq :basic
1115 end
You can’t perform that action at this time.
0 commit comments