You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en_US/dashboard/introduction.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,45 @@ For users who have installed EMQX for the first time, you can use the default us
58
58
59
59
After logging in for the first time, the system will automatically detect that you are logging in with the default username and password. It will force you to change the default password, which is good for the security of accessing the Dashboard. Note that the changed password cannot be the same as the original password, and it is not recommended to use `public` as the login password again.
60
60
61
+
### Token-Based Login via URL
62
+
63
+
Starting from EMQX 5.6.0, the Dashboard supports a token-based login method that allows users to log in directly by embedding authentication information in the URL.
64
+
65
+
This feature is particularly useful for seamless redirection and integration scenarios where a user should be logged in automatically without entering credentials manually.
66
+
67
+
#### How To Use This Login Method
68
+
69
+
1. Use the `/login` endpoint to obtain an authentication token. Since the response does not include the username, you will need to manually add it before encoding the full JSON payload.
70
+
71
+
You can perform all steps, including requesting the token, injecting the username, and encoding the result in Base64, in a single command, as shown below:
72
+
73
+
```
74
+
curl -s -X POST "http://127.0.0.1:18083/api/v5/login" \
This allows specifying the target page after login.
97
+
98
+
This method provides a smooth, pre-authenticated user experience for accessing the EMQX Dashboard. Make sure to handle the token securely and ensure it has appropriate expiration and scope limits.
99
+
61
100
### Reset Password
62
101
63
102
You can reset your Dashboard login password via the `admins` command. For details, see [CLI - admins](../admin/cli.md#admins).
0 commit comments