Apitome http_basic_authentication не настраивается - PullRequest
0 голосов
/ 21 мая 2019

Поскольку remote_docs конфигурация удалена из Apitome gem с помощью этого коммита, http_basic_authenthication больше не работает.

config/initializers/apitome.rb

  config.remote_docs = true # **Can't use this anymore** because of `config/initializers/apitome.rb:54:in `block in <main>': undefined method `remote_docs=' for Apitome::Configuration:Class (NoMethodError)`

  # If the remote_docs is set to true, this URL is used as the base for
  # the doc location. This should be the root of the doc location, where
  # the readme is located. It uses the doc_path setting to build the
  # URLs for the API documentation. This defaults to nil.
  config.http_basic_authentication = ['user', 'password'] # **Doesn't work anymore**

Есть ли способ использовать базовую аутентификацию http в качестве конфигурации для Apitome сейчас?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...