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
Current section
Files
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