Lti_1p3.Tool.AccessToken (Lti 1p3 v0.3.0)

Link to this section Summary

Functions

Requests an OAuth2 access token. Returns {:ok, %AccessToken{}} on success, {:error, error} otherwise.

Link to this section Types

Specs

t() :: %Lti_1p3.Tool.AccessToken{
  access_token: String.t(),
  expires_in: integer(),
  scope: String.t(),
  token_type: String.t()
}

Link to this section Functions

Link to this function

fetch_access_token(registration, scopes, host)

Requests an OAuth2 access token. Returns {:ok, %AccessToken{}} on success, {:error, error} otherwise.

As parameters, expects:

  1. The registration from which an access token is being requested
  2. A list of scopes being requested
  3. The host name of this instance of Torus