View Source hex_api_auth (hex_core v0.10.0)

Hex HTTP API - Authentication.

Link to this section Summary

Functions

Test an auth key against a given domain and resource.

Link to this section Functions

-spec test(hex_core:config(), map()) -> hex_api:response().

Test an auth key against a given domain and resource.

Examples:

  1> Params = #{domain => <<"repository">>, resource => <<"gustafson_motors">>}.
  2> hex_api_auth:test_key(hex_core:default_config(), Params).
  {ok,{204, ..., nil}}