Authorize-redirect and callback helpers for Pipedrive marketplace OAuth.
use ExPipedrivePhoenix.Install, opts defines authorize/2 and callback/2
on a Phoenix controller. See the package README for a router example.
Independent of Überauth — uses ExPipedrive.Oauth and TokenStore from core.
Summary
Functions
Puts a CSRF state in the session and redirects to Pipedrive authorize.
Exchanges code, persists the token, and redirects to :success_to.
Functions
@spec authorize( Plug.Conn.t(), keyword() ) :: Plug.Conn.t()
Puts a CSRF state in the session and redirects to Pipedrive authorize.
@spec callback(Plug.Conn.t(), map(), keyword()) :: Plug.Conn.t()
Exchanges code, persists the token, and redirects to :success_to.