Skip to content

Commit 47a4741

Browse files
committed
Update Getting Started articles to use API keys instead of passwords
1 parent 3331d1f commit 47a4741

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

_contentTemplates/common/nuget.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ As the Telerik NuGet server requires authentication, the first step is to obtain
2222
1. Go to the [NuGet Keys](https://www.telerik.com/account/downloads/nuget-keys) page in your Telerik account.
2323
1. Click **Generate New Key +**.
2424

25-
![Manage NuGet Keys](../../installation/images/account-generate-nuget-api-key.png)
25+
![Manage NuGet Keys](/installation/images/account-generate-nuget-api-key.png)
2626

2727
1. In the **Key Note** field, add a note that describes the API key.
2828
1. Click **Generate Key**.

get-started/first-steps-vs-code.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,15 @@ If you encounter any issues creating the basic project, see the complete guide i
5858

5959
Telerik maintains a NuGet feed with official UI for .NET MAUI releases and service packs. These packages are available for registered users with an active trial or commercial license. Adding the Telerik NuGet server as a source lets you download and install Telerik packages containing controls and utilities. As Visual Studio Code does not offer a built-in NuGet packet manager, use .NET CLI to add a new package source.
6060

61-
To add the Telerik NuGet source using .NET CLI, use the command below. Replace the placeholders with your Telerik account user name and password.
61+
@[template](/_contentTemplates/common/nuget.md#generate-nuget-key)
62+
63+
Next, use the command below to add the Telerik NuGet source using .NET CLI. Replace the NuGet API key placeholder with the API key that you generated.
6264

6365
```bash
64-
dotnet nuget add source https://nuget.telerik.com/v3/index.json --name TelerikNuGetFeed --username <TELERIK EMAIL> --password <TELERIK PASSWORD> --store-password-in-clear-text
66+
dotnet nuget add source https://nuget.telerik.com/v3/index.json --name TelerikNuGetFeed --username api-key --password <YOUR-NUGET-API-KEY> --store-password-in-clear-text
6567
```
6668

67-
>caution Storing passwords in plain text is strongly discouraged. This guide uses the `--store-password-in-clear-text` only for simplicity. For real-world scenarios, use secure methods, such as encrypted passwords or API keys. See <a href="https://learn.microsoft.com/en-us/nuget/consume-packages/consuming-packages-authenticated-feeds#security-best-practices-for-managing-credentials" target="_blank">Microsoft's security best practices</a> for more information on how to securely store your NuGet source credentials.
69+
>See <a href="https://learn.microsoft.com/en-us/nuget/consume-packages/consuming-packages-authenticated-feeds#security-best-practices-for-managing-credentials" target="_blank">Microsoft's security best practices</a> for more information on how to securely store your NuGet source credentials.
6870
6971
## Step 4: Install the Telerik UI for .NET MAUI Controls
7072

get-started/first-steps-vs.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ If you encounter any issues creating the basic project, see the complete guide i
5151

5252
Telerik maintains a NuGet feed with official UI for .NET MAUI releases and service packs. These packages are available for registered users with an active trial or commercial license. Adding the Telerik NuGet server as a source in Visual Studio lets you download and install Telerik packages containing controls and utilities.
5353

54+
@[template](/_contentTemplates/common/nuget.md#generate-nuget-key)
55+
5456
To add the Telerik NuGet source to Visual Studio:
5557

5658
1. In Visual Studio go to **Tools** > **NuGet Package Manager** > **Package Manager Settings**.
@@ -61,7 +63,7 @@ To add the Telerik NuGet source to Visual Studio:
6163

6264
1. Add the `https://nuget.telerik.com/v3/index.json` URL as a **Source**. Click **OK**.
6365

64-
1. Whenever Visual Studio displays a dialog to enter credentials for `nuget.telerik.com`, use your Telerik account email and password.
66+
1. Whenever Visual Studio displays a dialog to enter credentials for `nuget.telerik.com`, use `api-key` as the username and your NuGet API key as the password.
6567

6668
![Add the Telerik NuGet Feed in Visual Studio](./images/telerik-nuget-feed.png)
6769

@@ -71,7 +73,7 @@ To add the Telerik NuGet source to Visual Studio:
7173

7274
2. Install the Telerik UI for .NET MAUI package:
7375

74-
1. Select the `telerik.com` **Package source** that you [added earlier](#step-2-add-the-telerik-nuget-server). As this is a private NuGet feed, you must authenticate with your [Telerik account](https://www.telerik.com/account/) user name and password.
76+
1. Select the `telerik.com` **Package source** that you [added earlier](#step-2-add-the-telerik-nuget-server). As this is a private NuGet feed, you must authenticate using `api-key` as the username and [your NuGet API key](#step-3-add-the-telerik-nuget-server) as the password.
7577

7678
1. Select the **Browse** tab, enter `MAUI` in the search box, and then select the `Telerik.UI.for.Maui` package.
7779

0 commit comments

Comments
 (0)