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
`ZeroStyleRichText` fits well for tasks like email templates preview fields.
584
584
585
585
586
+
### Sensitive data blur
587
+
588
+
For fields containing sensitive data (like passwords, API keys, tokens, or other confidential values), use the `SensitiveBlurCell` renderer. It blurs the value by default and reveals it on click.
589
+
590
+
```ts title='./resources/anyResource.ts'
591
+
columns: [
592
+
...
593
+
{
594
+
name:'api_key',
595
+
//diff-add
596
+
components: {
597
+
//diff-add
598
+
show:'@/renderers/SensitiveBlurCell.vue',
599
+
//diff-add
600
+
list:'@/renderers/SensitiveBlurCell.vue',
601
+
//diff-add
602
+
},
603
+
...
604
+
```
605
+
606
+
The renderer wraps the standard value output and adds a click-to-reveal blur effect. Clicking again hides the value.
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/09-Plugins/02-TwoFactorsAuth.md
+19-13Lines changed: 19 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -283,7 +283,7 @@ But if you websocket doesn't work in you application, or you wan't to perform ve
283
283
284
284
You might want to to allow to call some custom critical/money related actions with additional 2FA approval. This eliminates risks caused by user cookies theft by some virous/doorway software after login.
285
285
286
-
To do it, first, create frontend custom component which wraps and intercepts click event to menu item, and in click handler do a call to `window.adminforthTwoFaModal.getCode(cb?)` frontend API exposed by this plugin. This is awaitable call wich shows 2FA popup and asks user to authenticate with 2nd factor (if passkey is enabled it will be suggested first, with ability to fallback to TOTP)
286
+
To do it, first, create frontend custom component which wraps and intercepts click event to menu item, and in click handler do a call to `get2FaConfirmationResult` frontend API exposed by this plugin. This is awaitable call wich shows 2FA popup and asks user to authenticate with 2nd factor (if passkey is enabled it will be suggested first, with ability to fallback to TOTP)
287
287
288
288
```tstitle='/custom/RequireTwoFaGate.vue'
289
289
<template>
@@ -293,6 +293,9 @@ To do it, first, create frontend custom component which wraps and intercepts cli
thrownewError('No Two-Factor Authentication modal found, please ensure you have latest version of @adminforth/two-factors-auth installed and instantiated on resource');
406
407
}
@@ -493,9 +494,12 @@ Imagine you have some button which does some API call
1. Go to the [Clerk Dashboard](https://dashboard.clerk.com) and open your application.
488
+
2. In the left sidebar, go to **Configure** → **Developers** → **OAuth Applications**.
489
+
3. Click **Add OAuth Application** and give it a name.
490
+
4. Copy the **Client Secret** from the OAuth application creation modal.
491
+
5. After copying, Clerk redirects you to the application page, where you can copy the **Client ID** and **Domain**.
492
+
6. Add the credentials to your `.env` file:
493
+
7. In **Redirect URLs**, add `https://your-domain/oauth/callback` and `http://localhost:3500/oauth/callback`. Include `baseUrl` when your AdminForth app uses it, for example `https://your-domain/base/oauth/callback`.
0 commit comments