Skip to content

Commit

Permalink
Remove staff basic auth strategy
Browse files Browse the repository at this point in the history
This is uneccessary now that we are using DSI for support as it was only
used to allow an invitation to be sent for the first staff user.
  • Loading branch information
gpeng committed Dec 6, 2023
1 parent 16274b2 commit d5d4dd1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 86 deletions.
48 changes: 0 additions & 48 deletions app/lib/staff_http_basic_auth_strategy.rb

This file was deleted.

4 changes: 0 additions & 4 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,6 @@
# If you want to use other strategies, that are not supported by Devise, or
# change the failure app, you can configure them inside the config.warden block.
#
config.warden do |manager|
manager.strategies.add(:staff_http_basic_auth, StaffHttpBasicAuthStrategy)
manager.default_strategies(scope: :staff).unshift :staff_http_basic_auth
end

# ==> Mountable engine configurations
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
Expand Down
6 changes: 0 additions & 6 deletions spec/support/system/activate_features_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,4 @@ def given_the_qualifications_service_is_open
def given_the_support_service_is_open
FeatureFlags::FeatureFlag.activate(:support_service_open)
end

def given_staff_http_basic_is_active
FeatureFlags::FeatureFlag.activate(:staff_http_basic_auth)
end

alias_method :and_staff_http_basic_is_active, :given_staff_http_basic_is_active
end
28 changes: 0 additions & 28 deletions spec/system/support/basic_auth_user_spec.rb

This file was deleted.

0 comments on commit d5d4dd1

Please sign in to comment.