Lti_1p3.Platform.AuthorizationRedirect (Lti 1p3 v0.3.0)

Link to this section Summary

Functions

Validates an authentication response and returns the state and platform lti params in a signed id_token signed if successful.

Link to this section Types

Specs

params() :: %{state: binary(), id_token: binary()}

Specs

user() :: %{id: integer()}

Link to this section Functions

Link to this function

authorize_redirect(params, current_user, issuer, deployment_id)

Specs

authorize_redirect(params(), user(), binary(), binary()) ::
  {:ok, binary(), binary(), binary()}
  | {:error,
     %{optional(atom()) => any(), :reason => atom(), :msg => String.t()}}

Validates an authentication response and returns the state and platform lti params in a signed id_token signed if successful.