adk_dev_auth (erlang_adk v0.7.0)
View SourceBearer authentication and same-origin checks for local developer APIs.
Summary
Functions
Compare arbitrary binaries through fixed-size SHA-256 digests.
Functions
-spec authorize(cowboy_req:req(), map()) -> ok | {error, unauthorized | forbidden | unavailable}.
Compare arbitrary binaries through fixed-size SHA-256 digests.
-spec same_origin(cowboy_req:req()) -> boolean().