Packages

An APIac authenticator plug for API authentication using the HTTP Bearer scheme

Retired package: Security issue - unsafe SSL handling (use of an insecure library)

Current section

Files

Jump to
apiac_auth_bearer lib validator identity.ex
Raw

lib/validator/identity.ex

defmodule APIacAuthBearer.Validator.Identity do
@behaviour APIacAuthBearer.Validator
@moduledoc """
Returns data passed as a parameter - used for tests
"""
@doc """
Returns data passed as the `:response` member of the `opts` parameter
"""
@impl true
def validate(_bearer, opts) do
opts[:response]
end
end