Lti_1p3.Platform.AuthorizationRedirect (Lti 1p3 v0.8.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
Link to this type
claim()
@type claim() :: Lti_1p3.Claims.DeploymentId.t() | Lti_1p3.Claims.TargetLinkUri.t() | Lti_1p3.Claims.ResourceLink.t() | Lti_1p3.Claims.Roles.t() | Lti_1p3.Claims.Context.t() | Lti_1p3.Claims.PlatformInstance.t()
Link to this type
params()
Link to this type
user()
@type user() :: %{id: integer()}
Link to this section Functions
Link to this function
authorize_redirect(params, current_user, issuer, claims)
@spec authorize_redirect( params(), user(), binary(), [claim()] ) :: {: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.