Create users, manage users, and require sign in to authenticate and use Mage.
Name | REQUIRE_USER_AUTHENTICATION |
Value | 1 |
MAGE_ACCESS_TOKEN_EXPIRY_TIME
environment variable to customize the expiration time
of a Mage access token. The value should be the length of time in seconds.
Defaults to 2592000 which is 30 days.
Name | MAGE_ACCESS_TOKEN_EXPIRY_TIME |
Value | 2592000 |
docker run
command. Follow these instructions
to learn how.
Set the environment variable using -e REQUIRE_USER_AUTHENTICATION=1
.
For example:
pip
, conda
, poetry
, etc. and are running it using the mage start
command, then you need to set the environment variable on your workstation.
Field | Value |
---|---|
admin@admin.com | |
Password | admin |
0.9.72
DEFAULT_OWNER_EMAIL
DEFAULT_OWNER_PASSWORD
DEFAULT_OWNER_USERNAME
/sign-in
. If you go to a page that requires
authentication and you’re not signed in, you’ll be redirected to the sign in page.
/settings/workspace/users
.
On this page, you can:
Role | Permissions |
---|---|
Viewer | Can read. |
Editor | Can do everything a viewer can, create, update, and delete. |
Admin | Can do everything a viewer can, an editor can, and manage users who are viewers/editors (update usernames, emails, passwords, and make viewers editors or vice versa. |
Owner | In addition to what admins can do, add and delete users. Manage all users, including admins/owners. Make other users any role, including admins/owners. |
4XX
error code.
Error code | Description |
---|---|
401 | Expired OAuth token. |
401 | Invalid OAuth token. |
402 | Record is invalid. |
403 | Invalid API key. |
403 | Unauthorized access. |
404 | Record not found. |
500 | API resource error. |