stefan-kolb/nucleus

View on GitHub
lib/nucleus_api/scripts/initialize_api_customizations.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Add authorization strategy to grape and replace default http_basic
Grape::Middleware::Auth::Strategies.add(:http_basic, Nucleus::API::Middleware::BasicAuth,
                                        ->(options) { [options[:realm]] })