digest認証を設定しているアプリケーションで、新たにRestAPIを実装しました。
APIのエンドポイントのみdigest認証を外す方法を教えていただいたいです。
実装したいイメージは以下のとおりです。
digest認証の対象
<domain>/home
digest認証非対称
<domain>/api/v1/receive
application_controller.rb
before_action :digest_auth …中略 def digest_auth digest_auth_params = MYAPP::Application.credentials.digest_auth authenticate_or_request_with_http_digest do |id| digest_auth_params[:id] == id && digest_auth_params[:password] end end
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。