Sha256: bb39282e2d2111f6f05efd044f0016258d1c208129573acbddb7b7e354d2ce6b

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

module SwaggerUiEngine2
  module AuthConfigParser
    def admin_username
      configuration.admin_username
    end

    def admin_password
      configuration.admin_password
    end

    def basic_authentication_enabled?
      admin_username && admin_password
    end

    def configuration
      SwaggerUiEngine2.configuration
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
swagger_ui_engine_2-1.0.1 app/helpers/swagger_ui_engine_2/auth_config_parser.rb
swagger_ui_engine_2-0.2.0 app/helpers/swagger_ui_engine_2/auth_config_parser.rb