Skip to content

Commit

Permalink
docs: login history (#3261)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois and thomasheartman committed Mar 8, 2023
1 parent f80ce1e commit 516cb18
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 0 deletions.
23 changes: 23 additions & 0 deletions website/docs/how-to/how-to-download-login-history.mdx
@@ -0,0 +1,23 @@
---
title: How to download your login history
---

:::info availability

Login history is an enterprise feature available from Unleash 4.22 onwards.

:::

[Login history](../reference/login-history.md) enables Unleash admins to audit login events and their respective information, including whether they were successful or not.

## Step 1: Navigate to the login history page {#step-1}

Navigate to the _login history_ page in the admin UI (available at the URL `/admin/logins`). Use the _settings_ button in the navigation menu and select "login history".

![The admin UI navigation settings submenu with the login history item highlighted.](/img/login-history-1.png)

## Step 2: Click the "Download login history" button {#step-2}

Use the "download login history" button to proceed with the download of the login history as CSV.

![The login history table with the "download login history" button highlighted.](/img/login-history-2.png)
42 changes: 42 additions & 0 deletions website/docs/reference/login-history.md
@@ -0,0 +1,42 @@
---
title: Login history
---

:::info

Login history is an enterprise feature available from Unleash 4.22 onwards.

:::

Unleash's login history lets you track login events in your Unleash instance, and whether the attempts were successful in logging in or not.

![Login history table](/img/login-history-table.png)

For each login event, it lists:

- **Created**: When it happened
- **Username**: The username that was used
- **Authentication**: The authentication type that was used
- **IP address**: The IP address that made the attempt
- **Success**: Whether the attempt was successful or not
- **Failure reason**: If the attempt was not successful, the reason why

You can see the failure reason by hovering over the "False" badge in the "Success" column.

![Login history table failure reason](/img/login-history-table-fail.png)

Use the login history to:

- Audit login events in your Unleash instance
- Identify failed login attempts and investigate the cause
- Debug misconfigured authentication providers

The login history is mutable: You can remove individual login events or clear the entire history by deleting all of them.

Finally, the login history can be downloaded ([how do I download my Unleash login history](../how-to/how-to-download-login-history.mdx)) for external backups, audits, and the like.

## Retention

Events in the login history are retained for 336 hours (14 days).

Events older than the retention period are automatically deleted, and you won't be able to recover them. If you would like to collect login event information past the retention period, we suggest periodically downloading the login history.
2 changes: 2 additions & 0 deletions website/sidebars.js
Expand Up @@ -69,6 +69,7 @@ module.exports = {
'how-to/how-to-create-api-tokens',
'how-to/how-to-create-personal-access-tokens',
'how-to/how-to-create-service-accounts',
'how-to/how-to-download-login-history',
'how-to/how-to-use-the-admin-api',
'how-to/how-to-enable-openapi',
],
Expand Down Expand Up @@ -316,6 +317,7 @@ module.exports = {
'reference/feature-toggle-types',
'reference/feature-toggle-variants',
'reference/front-end-api',
'reference/login-history',
'reference/network-view',
'reference/playground',
'reference/public-signup',
Expand Down
Binary file added website/static/img/login-history-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/login-history-2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/login-history-table-fail.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/login-history-table.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 516cb18

Please sign in to comment.