Generic OAuth2 control-plane helpers built on Pristine's transport boundary.
Summary
Types
@type result(value) :: {:ok, value} | {:error, Pristine.OAuth2.Error.t()}
Functions
@spec authorization_request(Pristine.OAuth2.Provider.t(), keyword()) :: result(Pristine.OAuth2.AuthorizationRequest.t())
@spec authorize_url(Pristine.OAuth2.Provider.t(), keyword()) :: result(String.t())
@spec available?() :: boolean()
@spec client_credentials(Pristine.OAuth2.Provider.t(), keyword()) :: result(Pristine.OAuth2.Token.t())
@spec exchange_code(Pristine.OAuth2.Provider.t(), String.t(), keyword()) :: result(Pristine.OAuth2.Token.t())
@spec introspect_token(Pristine.OAuth2.Provider.t(), String.t(), keyword()) :: result(map())
@spec password_token(Pristine.OAuth2.Provider.t(), String.t(), String.t(), keyword()) :: result(Pristine.OAuth2.Token.t())
@spec refresh_token(Pristine.OAuth2.Provider.t(), String.t(), keyword()) :: result(Pristine.OAuth2.Token.t())
@spec revoke_token(Pristine.OAuth2.Provider.t(), String.t(), keyword()) :: result(map())