Skip to content

Configuration authentication through credentials not working #7

Description

@jeffse

Running under Rails 8.1.3.

When I try to configure authentication through credentials, it fails.

Example:

flightdeck:
  username: jobs
  password: jobs

The error stems from

source = source.call if source.respond_to?(:call)

The credentials at Rails.application.credentials.flightdeck is an instance of the class ActiveSupport::OrderedOptions, which responds to call but returns nil.

Current workaround is to configure the initializer config/initializers/flightdeck.rb as

Flightdeck.configure do |config|
  fd = Rails.application.credentials.flightdeck
  config.http_basic = { username: fd.username, password: fd.password }
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions