instance method
authenticated?
Ruby on Rails 8.1.2
Since v6.0.6 PrivateSignature
authenticated?()
No documentation comment.
Source
# File actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb, line 64
def authenticated?
if key.present?
Authenticator.new(
key: key,
timestamp: params.require(:timestamp),
token: params.require(:token),
signature: params.require(:signature)
).authenticated?
else
raise ArgumentError, <<~MESSAGE.squish
Missing required Mailgun Signing key. Set action_mailbox.mailgun_signing_key in your application's
encrypted credentials or provide the MAILGUN_INGRESS_SIGNING_KEY environment variable.
MESSAGE
end
end
Defined in actionmailbox/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailbox::Ingresses::Mailgun::InboundEmailsController