Security
Description
The Security view shows how you confirm that it is you when you sign in. You can add, rename and remove second factors, move your authenticator app to a new phone, change your password and see how many recovery codes are left here.
The view is reached from Security in the Account sidebar (route /account/security; the former address /profile/security redirects), below Profile. The entry and the page exist only when your organisation signs in with a password plus a second factor. For an organisation that signs in with an e-mail code, the entry is not shown, and opening /account/security directly returns you to Profile. The entry is also hidden while an administrator views your account through impersonation.
Actions that need a fresh confirmation (creating an API token, approving a device, erasing your account, and, for administrators, creating a token for a person) ask for your second factor in a Confirm it's you dialog when you start them. The same confirmation protects sensitive changes in the Security view. See Step-up.
The view holds three cards:
- Second factor — one row per factor, with its Name, Type (App code, Passkey or Security key), the date it was Added and when it was Last used. A factor that was never used shows Not used yet. Long names are shortened; hover shows the full name. A Required by your organisation badge marks the card. Each row has Rename and Remove actions. Without a factor, the card reads No second factor set up yet. Sign out and sign in again to set one up.
- Password — Set or Not set (when set, the card adds "You sign in with your password, then your second factor."), the date the password was last changed when it is known, and a Change password button when a password is set.
- Recovery codes — how many of the 10 single-use codes are left (for example 7 of 10 left).
Add a second factor
Add a second factor, below the factor table, opens the dialog of the same name. Choose Passkey, Security key or Authenticator app, then Continue. An existing app code disables the app option with a reason (You already have an app code. To use a new phone, choose "Move app to a new phone".); devices without WebAuthn disable both key options. With no factor, sign out and sign in again to set one up instead.
First confirm it is you in the step-up dialog. Cancelling sends no enrolment request. After a failed app-code or recovery-code verification, Retry returns to an empty code field without sending anything; enter a fresh code yourself.
Then scan the app QR code and enter its code, or name and create the passkey or security key. A wrong app code keeps the QR and form, without signing you out. A successful addition closes the dialog, names the added factor in a toast and refreshes the table. It does not issue new recovery codes.
While preparing, confirming or saving, the dialog cannot be dismissed. While the browser prompt is open, use its own Cancel or the ceremony's Cancel. Back while key options are loading returns straight to the chooser; later Back or closing a setup form asks whether to discard it. Returning to the chooser requires a new confirmation next time.
A refused credential needs another confirmation before new options can be loaded. Expired enrolment or too many wrong codes closes setup with a notice; a temporary failure keeps the form. If a save could have succeeded despite a lost or malformed answer, the table is refreshed and no success is claimed. Check the table before trying again.
Move the authenticator app to a new phone
Move app to a new phone sits next to Add a second factor below the factor table. It is shown only when you already use an authenticator app; without one, add an app instead.
- First confirm it is you in the step-up dialog. Any of your factors works, including the current app, or a recovery code if the old phone is lost.
- The Move your authenticator app dialog then shows a new QR code and key. Scan it with the app on your new phone.
- Enter the new phone's code and choose Verify and switch.
Your current app keeps working until the new phone's code is verified. From that moment only the new phone's codes are accepted; the factor keeps its name and its row in the table. You stay signed in on all your devices, and you get a security e-mail about the change. A toast says Authenticator app moved. Use the new phone from now on. and the table is read again. No new recovery codes are issued.
Cancel at any point changes nothing. Cancelling the step-up sends nothing. Cancel, Escape or a click outside the dialog while the QR code is shown asks Stop moving the app? (Nothing has changed. Your current app keeps working.); Stop moving closes the dialog, Keep going returns to the QR code with what you typed. The started move simply expires. While the move is being prepared or the code is checked, the dialog cannot be dismissed.
| Answer | What you see |
|---|---|
| wrong code from the new phone | the code field shows the error; the QR code and the key stay, try the next code |
| confirmation expired before the move started | Your confirmation expired. Try again.; Try again asks for a new confirmation |
| the move cannot be started (server error, no answer) | The move could not be started. Nothing changed. Try again. |
| you no longer have an authenticator app (removed elsewhere) | the dialog closes: You no longer have an authenticator app, so nothing was moved. Add one instead. The table is read again. |
| too many wrong codes | the dialog closes: Too many wrong codes. Nothing was moved. Start again. |
| the started move is no longer open | the dialog closes: This move is no longer open. Start again if codes from your new phone are not accepted. |
| session signed in without a password and second factor (for example single sign-on) | the step-up dialog says so; nothing is moved |
| administrator views your account | the usual not-available-while-viewing message |
| any other refusal | The app could not be moved. Your current app still works. Try again. |
A lost answer is never shown as success. If the answer to Verify and switch is lost (no connection, a timeout, a server error or an answer that cannot be understood), the dialog stays open with We could not confirm whether the app was moved. Enter a new code from your new phone to try again., no toast is shown and the table is read again. If the move did go through, the next try reports Your app was most likely moved already: use codes from your new phone. If they are not accepted, your current app still works.
Rename a second factor
Rename turns the name into an input. Enter (or Save name) saves, Escape (or Cancel rename) discards the change; clicking elsewhere does nothing. Spaces at the start and end of the name are removed first. The page refuses, before anything is sent, an empty name (Enter a name.), a name of more than 64 characters and a name with control characters (both Use at most 64 characters, without control characters.). The server checks the same rules again, and its refusal is shown under the field, which stays open. If the name cannot be saved for another reason, the field says The name could not be saved. Try again. and the list is read again, in case the name was stored after all. While the name is being saved, the input, Cancel rename and Save name are unavailable. Saving shows Name saved. and refreshes the list.
Remove a second factor
Remove asks you to confirm (for example Remove passkey or Keep passkey), then asks you to confirm it is you with the step-up dialog, which never offers the factor you are removing. Only after that does the page send the removal. On success a toast names the removed factor and the list is read again. If the step-up has expired, the page says Your confirmation expired. Try again. If the removal fails, the page says The second factor could not be removed. Try again. and reads the list again: the row stays unless the factor was removed after all.
The last factor
When only one factor is left, Remove is unavailable and its reason is read out: This is your only second factor. Add another one first. A hint under the table explains why (Your organisation requires a second factor. Add another one before you remove this one.; platform administrators see that they always need a second factor). If the server still refuses because the factor became the last one, the page says so and refreshes the list.
Session message
If your session may not change second factors, the page says Sign in again with your password to change second factors. While an administrator views your account, changes are refused with the usual not-available-while-viewing message.
Change your password
Change password opens a dialog with Current password and New password, each with a show/hide button. The hint under the new password reads At least 12 characters, with letters and numbers. Not one of your last 4 passwords. Passwords are sent exactly as typed; spaces are not removed.
Before anything is sent, the page refuses an empty field (This field is required.), a new password of fewer than 12 characters (Use at least 12 characters.) and one without a letter or a digit (Use letters and numbers.). The first field with an error gets the focus. An error shows when you leave a field, not while you type.
Then the step-up dialog asks you to confirm it is you; the password dialog closes while it is open (never two dialogs at once). If you cancel it, the password dialog returns with what you typed. Only after the confirmation does the page send the change. While it is sent, the buttons are unavailable and a second click sends nothing.
On success the dialog closes, the page is read again and a Password changed notice appears: You stay signed in here. We signed you out on all other devices and apps. The notice disappears when you open the dialog again.
When the change is refused
| Answer | What you see |
|---|---|
| wrong current password | The current password is not right. under that field; you stay signed in. Each new try asks for a new confirmation. |
| password already used for the last 4 | Choose a password you have not used for your last 4 passwords. under the new password |
| password on the list of leaked passwords | This password appears in a list of leaked passwords. Choose another one. |
| too short, too weak, unusual characters | the matching message under the field the server names |
| too many wrong passwords | Too many wrong passwords. Changing your password is paused for up to 30 minutes. Try again later. |
| confirmation expired | Your confirmation expired. Try again. |
| session signed in without a password and second factor (for example single sign-on) | Sign in again with your password and second factor to change your password. Nothing is sent again. |
| administrator views your account | the usual not-available-while-viewing message |
| no second factor | Your account has no second factor. Sign in again to set one up. |
| the server cannot be reached, answers with an error, or the answer is not understood | We could not confirm whether your password was changed. If your old password stops working, sign in with the new one. The page is read again. |
| the gateway says your account no longer signs in with a password and second factor (it answers not found) | The dialog closes and the page is read again. |
| not found from something other than the gateway, for example a proxy | Your password could not be changed. Nothing was changed. Try again. The dialog stays open with what you typed. |
| any other refusal | Your password could not be changed. Nothing was changed. Try again. |
A sign-in that has expired sends you to the sign-in page; it is never shown as a wrong password. Closing the dialog with something typed asks whether to discard it; Escape in the step-up dialog closes only the step-up dialog, and the password dialog returns. The dialog fits a 390 px wide screen.
Freshness
The list is read when the page opens and again after every change. If a factor was already removed elsewhere, the page says This second factor no longer exists. The list was refreshed. If a read after a change fails, the rows you already see stay, with Your factors could not be refreshed. What you see may be out of date., and the Security tab stays visible.
When the view cannot be loaded
While the view loads, placeholder rows are shown. If the read fails, or the answer cannot be understood, the page shows Your sign-in factors could not be loaded. Your factors are not affected. with a Retry button. It never shows an empty page in that case. On a failed read the Security tab stays visible, and opening it tries again.
Data source
The view reads GET /admin/v1/me/security, adds factors with POST /admin/v1/me/factors/totp, POST /admin/v1/me/factors/totp/confirm, POST /admin/v1/me/factors/webauthn/options and POST /admin/v1/me/factors/webauthn, moves the app with POST /admin/v1/me/factors/totp/move and POST /admin/v1/me/factors/totp/confirm, renames with PATCH /admin/v1/me/factors/{id}, removes with POST /admin/v1/me/factors/{id}/remove and changes the password with PUT /admin/v1/me/password; see Account security while signed in.