cassette v1.2.6 Cassette.Authentication

ST validation functions

Summary

Functions

Extracts the authenticated user from validation response

Functions

handle_response(body)

Specs

handle_response(String.t) ::
  {:ok, Cassette.User.t} |
  {:error, String.t}

Extracts the authenticated user from validation response

Returns a tuple with:

  • {:ok, Cassette.User.t} on success
  • {:error, String.t} on error where the string is the failure reason returned by the cas server