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: 10/umbraco-forms/installation/install.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,14 @@ Umbraco contains the **Forms** section, by default. You will see a similar inter
15
15
16
16
To install the Umbraco Forms package (**Umbraco.Forms**), follow these steps:
17
17
18
-
1. Run the following command on a command prompt of your choice:
18
+
1. Identify the Umbraco CMS version your project is running.
19
+
2. Find a compatible version of Umbraco Forms that matches your Umbraco CMS version. A list of Umbraco Forms versions can be found on [nuget.org](https://www.nuget.org/packages/Umbraco.Forms#versions-body-tab).
20
+
3. Run the following command on a command prompt of your choice, replacing `<version_number>` with the appropriate version identified above:
If you want to use a custom icon for the login button, you need to add the icon to the Umbraco backoffice. You can do this by adding the icon to the `~/App_Plugins/MyPlugin/BackOffice/Icons` folder. The icon should be a SVG file. The icon should be named the same as the icon name you specify in the `options.Icon` property.
270
+
If you want to use a custom icon for the login button, you need to add the icon to the Umbraco backoffice. You can do this by adding the icon to the `~/App_Plugins/MyPlugin/BackOffice/Icons` folder. The icon should be an SVG file. The icon should be named the same as the icon name you specify in the `options.Icon` property.
266
271
267
272
{% hint style="info" %}
268
273
You can use the [Umbraco Icon Picker](../../fundamentals/data/defining-content/README.md#adding-icons-to-the-document-type) to see available icons.
@@ -362,7 +367,7 @@ The `CustomBackofficeView` allows for specifying a JavaScript module to render a
362
367
* You want to display something different where external login providers are listed: in the login screen vs the backoffice panel vs on the logged-out screen. This same view will render in all of these cases but you can use the current route parameters to customize what is shown.
363
368
* You want to change how the button interacts with the external login provider. For example, instead of having the site redirect on button-click, you want to open a popup window to load the external login provider.
364
369
365
-
The path to the custom view is a virtual path, like this example: `"~/App_Plugins/MyPlugin/BackOffice/my-external-login.js"`.
370
+
The path to the custom view is a virtual path, like this example: `"/App_Plugins/MyPlugin/BackOffice/my-external-login.js"`.
366
371
367
372
When a custom view is specified it is 100% up to this module to perform all required logic.
368
373
@@ -374,7 +379,7 @@ The module should define a Custom Element and export it as default. The Custom E
374
379
*`userViewState`: The current view state of the user. This can be one of the following values:
375
380
*`loggingIn`: The user is on the login screen.
376
381
*`loggedIn`: The user is on the backoffice panel.
377
-
*`loggedOut`: The user clicked the logout button and is on the logged-out screen.
382
+
*`loggedOut`: The user clicks the logout button and is on the logged-out screen.
378
383
*`timedOut`: The user's session has timed out and they are on the timed-out screen.
The Custom Element can be implemented in a number of ways with many different libraries or frameworks. The following examples show how to make a button appear and redirect to the external login provider. You will learn how to use the `externalLoginUrl` property to redirect to the external login provider. The login form should look like this when you open Umbraco:
404
+
The Custom Element can be implemented in several ways with many different libraries or frameworks. The following examples show how to make a button appear and redirect to the external login provider. You will learn how to use the `externalLoginUrl` property to redirect to the external login provider. The login form should look like this when you open Umbraco:
400
405
401
406

402
407
@@ -475,7 +480,7 @@ class MyLitView extends LitElement {
475
480
providerName: { type:String },
476
481
displayName: { type:String },
477
482
externalLoginUrl: { type:String },
478
-
userViewState: { type:String }
483
+
userViewState: { type:String, state:true }
479
484
};
480
485
}
481
486
@@ -514,7 +519,7 @@ export default MyLitView;
514
519
515
520
### Static extension class
516
521
517
-
The extension class is required to extend on the default authentication implementation in Umbraco CMS. A generic example of such extension class can be seen below.
522
+
The extension class is required to extend the default authentication implementation in Umbraco CMS. A generic example of such an extension class can be seen below.
Copy file name to clipboardExpand all lines: 13/umbraco-cms/reference/security/two-factor-authentication.md
+73-33
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ This article includes guides for implementing two-factor authentication options
11
11
*[Two-Factor Authentication for Members](#two-factor-authentication-for-members)
12
12
*[Two-Factor Authentication for Users](#two-factor-authentication-for-users)
13
13
14
+
Two-factor authentication (2FA) for Umbraco Users and Members is activated by implementing an `ITwoFactorProvider` interface and registering the implementation. The implementation can use third-party packages to support authentication apps like the Microsoft- or Google Authentication Apps.
15
+
14
16
{% hint style="info" %}
15
17
16
18
If you are using [Umbraco Cloud](https://umbraco.com/products/umbraco-cloud/), you can enable multi-factor authentication in Umbraco ID. For more information, see the [Multi-Factor Authentication](https://docs.umbraco.com/umbraco-cloud/set-up/multi-factor-authentication-on-cloud) article.
@@ -19,8 +21,6 @@ If you are using [Umbraco Cloud](https://umbraco.com/products/umbraco-cloud/), y
19
21
20
22
## Two-factor authentication for Members
21
23
22
-
Two-factor authentication (2FA) for Umbraco members is activated by implementing an `ITwoFactorProvider` interface and registering the implementation. The implementation can use third-party packages to support authentication apps like the Microsoft- or Google Authentication Apps.
23
-
24
24
The following guide will take you through implementing an option for your website members to enable two-factor authentication.
25
25
26
26
{% hint style="info" %}
@@ -224,7 +224,7 @@ At this point, the 2FA is active, but no members have set up 2FA yet. The setup
224
224
225
225

226
226
227
-
### Test the set up
227
+
### Test the set up for Members
228
228
229
229
1. Login to the website using a test member.
230
230
2. Navigate to the page where the QR code was added.
@@ -242,11 +242,19 @@ When a 2FA login is requested for a member, the `MemberTwoFactorRequestedNotific
242
242
243
243
## Two-factor authentication for Users
244
244
245
-
Umbraco controls how the UI is for user login and user edits, but will still need a view for configuring each 2FA provider.
245
+
The following guide will take you through implementing an option for backoffice users to enable two-factor authentication.
246
+
247
+
This guide will not cover setting up the UI for user login and edits as this is handled elsewhere in the CMS.
246
248
247
249
### Example implementation for Authenticator Apps for Users
248
250
249
-
In the following example, we will use the [GoogleAuthenticator NuGet Package](https://www.nuget.org/packages/GoogleAuthenticator/). Despite the name, this package works for both Google and Microsoft authenticator apps. It can be used to generate the QR code needed to activate the app for the website.
251
+
As an example, the guide will use the [GoogleAuthenticator NuGet Package](https://www.nuget.org/packages/GoogleAuthenticator/). This package works for both Google and Microsoft authenticator apps. It can be used to generate the QR code needed to activate the app for the website.
252
+
253
+
1. Install the GoogleAuthenticator Nuget Package on your project.
254
+
2. Create a new file in your project: `TwoFactorAuthInfo.cs`.
255
+
3. Update the file with the following code snippet.
@@ -333,17 +345,19 @@ public class UmbracoUserAppAuthenticator : ITwoFactorProvider
333
345
}
334
346
```
335
347
336
-
First, we create a model with the information required to set up the 2FA provider. Then we implement the `ITwoFactorProvider` with the use of the `TwoFactorAuthenticator` from the GoogleAuthenticator NuGet package.
348
+
{% endcode %}
349
+
350
+
4. Update `namespace` on line 7 to match your project.
351
+
5. Customize the `applicationName` variable on line 59.
352
+
6. Create a new file in your project: `UmbracoAppAuthenticatorComposer.cs`.
353
+
7. Implement a new composer and register the `UmbracoAppAuthenticator` implementation as shown below.
337
354
338
-
Now we need to register the `UmbracoUserAppAuthenticator` implementation and the view to show to set up this provider. This can be done on the `IUmbracoBuilder` in your startup or a composer.
At this point, the 2FA is active, but no users have set it up.
555
+
556
+
### Test the set up for Users
557
+
558
+
Each user can now enable the configured 2fa providers on their user.
559
+
560
+
1. Access the Umbraco backoffice.
561
+
2. Click the user avatar in the top-right corner.
520
562
521
563

522
564
523
-
When clicking the `Configure Two-Factor` button, a new panel is shown, listing all enabled two-factor providers.
565
+
3. Select `Configure Two-Factor` button to open a new panel listing all enabled two-factor providers.
524
566
525
567

526
568
527
-
When clicking`Enable`on one of these, the configured view for the specific provider will be shown
569
+
4. Select`Enable`to show the configured view.
528
570
529
571

530
572
531
-
When the authenticator is enabled correctly, a disable button is shown instead.
573
+
5. Follow the instructions to configure 2FA.
532
574
533
-

534
-
535
-
To disable the two-factor authentication on your user, it is required to enter the verification code. Otherwise, admins are allowed to disable providers on other users.
575
+
When the authenticator is enabled correctly, a disable button is shown instead.
536
576
537
-

577
+

538
578
539
-
If the code is correct, the provider is disabled.
579
+
To disable the two-factor authentication on your user, it is required to enter the verification code.
Copy file name to clipboardExpand all lines: 13/umbraco-forms/installation/install.md
+12-11
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,18 @@ Umbraco contains the **Forms** section, by default. You will see a similar inter
14
14
15
15
To install the Umbraco Forms package (**Umbraco.Forms**), follow these steps:
16
16
17
-
1. Run the following command on a command prompt of your choice:
18
-
19
-
```
20
-
dotnet add package Umbraco.Forms
21
-
```
22
-
23
-
2. Restart the web application using the following command:
24
-
25
-
```
26
-
dotnet run
27
-
```
17
+
1. Identify the Umbraco CMS version your project is running.
18
+
2. Find a compatible version of Umbraco Forms that matches your Umbraco CMS version. A list of Umbraco Forms versions can be found on [nuget.org](https://www.nuget.org/packages/Umbraco.Forms#versions-body-tab).
19
+
3. Run the following command on a command prompt of your choice, replacing `<version_number>` with the appropriate version identified above:
0 commit comments