TamaOAuth.Introspection (tama_oauth v0.1.0)

Copy Markdown View Source

Builds and validates RFC 7662-style token introspection values.

Summary

Functions

active(claims, grant_id)

@spec active(map(), String.t()) :: {:ok, map()} | {:error, TamaOAuth.Error.t()}

inactive()

@spec inactive() :: map()

parse_request(params, opts \\ [])

@spec parse_request(
  map(),
  keyword()
) :: {:ok, String.t()} | {:error, TamaOAuth.Error.t()}

validate_response(response, opts)

@spec validate_response(
  map(),
  keyword()
) :: {:ok, map() | :inactive} | {:error, TamaOAuth.Error.t()}