nm_iam_set_user_sct()

DESCRIPTION

Set an SCT for the specified user while the system is running.

See https://docs.nabto.com/developer/guides/security/token_based_access_control.html#sct-intro for more information.

DECLARATION

enum nm_iam_error nm_iam_set_user_sct(struct nm_iam* iam, const char* username, const char* sct)

PARAMETERS

iam:
[in] IAM module to manipulate
username:
[in] the username of the user
sct:
[in] the sct to set for the user

RETURN VALUES

NM_IAM_ERROR_OK if the SCT was set successfully for the user. NM_IAM_ERROR_NO_SUCH_USER if the specified user does not exist.

EXAMPLES

None.