auth v1.3.0 AuthWeb.ApikeyController
Link to this section Summary
Functions
decode_decrypt/1
accepts a key
and attempts to Base58.decode
followed by AES.decrypt it. If decode or decrypt fails, return 0 (zero).
update/2
updates a given API Key. Checks if the person attempting
to update the key is the "owner" of the key before updating.
Link to this section Functions
Link to this function
create(conn, map)
Link to this function
create_api_key(person_id)
Link to this function
decode_decrypt(key)
decode_decrypt/1
accepts a key
and attempts to Base58.decode
followed by AES.decrypt it. If decode or decrypt fails, return 0 (zero).
Link to this function
decrypt_api_key(key)
Link to this function
delete(conn, map)
Link to this function
edit(conn, map)
Link to this function
encrypt_encode(plaintext)
Link to this function
index(conn, params)
Link to this function
make_apikey(apikey_params, person_id)
Link to this function
new(conn, params)
Link to this function
show(conn, map)
Link to this function
update(conn, map)
update/2
updates a given API Key. Checks if the person attempting
to update the key is the "owner" of the key before updating.