Skip to content

Commit

Permalink
Change http basic auth for when service closed
Browse files Browse the repository at this point in the history
If the service isn't open (determined via feature flag), we have a basic
auth prompt that provides some light resistance to accessing it.

This prompt is encountered regularly in local development, as the
feature flag will often be inactive (after a database reset for
example).

Change the credentials used to match other services looked after by TRA
Digital (eg - Find, AYTQ, CTR).
  • Loading branch information
malcolmbaig committed Jun 21, 2024
1 parent 22017f2 commit 4c8be76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class ApplicationController < ActionController::Base
def http_basic_authenticate
valid_credentials = [
{
username: ENV.fetch("SUPPORT_USERNAME", "support"),
password: ENV.fetch("SUPPORT_PASSWORD", "support")
username: ENV.fetch("SUPPORT_USERNAME", "test"),
password: ENV.fetch("SUPPORT_PASSWORD", "test")
}
]

Expand Down

0 comments on commit 4c8be76

Please sign in to comment.