View Source SlackRequest (SlackRequest v1.0.0)

Utilities for verifing an HTTP request can be authenticated as a request coming from Slack HQ.

https://api.slack.com/authentication/verifying-requests-from-slack

Summary

Functions

@spec signature(Plug.Conn.t()) :: binary() | nil
@spec timestamp(Plug.Conn.t()) :: binary() | nil
Link to this function

valid_request?(conn, options \\ [])

View Source
@spec valid_request?(Plug.Conn.t(), Keyword.t()) :: boolean()
Link to this function

valid_signature?(conn, opts \\ [])

View Source
@spec valid_signature?(Plug.Conn.t(), Keyword.t()) :: boolean()
Link to this function

valid_timestamp?(timestamp, options \\ [])

View Source
@spec valid_timestamp?(Plug.Conn.t(), Keyword.t()) :: boolean()
@spec valid_timestamp?(binary(), Keyword.t()) :: boolean()