PowAssent v0.1.0 PowAssent.Strategy.OAuth View Source

OAuth 1.0 strategy.

Usage

config :my_app, :pow_assent,
  providers: [
    example: [
      consumer_key: "REPLACE_WITH_CONSUMER_KEY",
      consumer_secret: "REPLACE_WITH_CONSUMER_SECRET",
      strategy: PowAssent.Strategy.OAuth,
      site: "https://auth.example.com"
    ]
  ]

Link to this section Summary

Functions

Makes a HTTP get request to the API

Link to this section Functions

Link to this function get(config, token, url, params \\ []) View Source
get(Keyword.t(), map(), binary(), Keyword.t()) ::
  {:ok, map()} | {:error, term()}

Makes a HTTP get request to the API.

JSON responses will be decoded to maps.