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
1. Go to the [**Manage NuGet Keys**](https://www.telerik.com/account/downloads/nuget-keys) page in your Telerik account.
20
+
As the Telerik NuGet server requires authentication, the first step is to obtain an API key that you will use instead of a password. Using an API key instead of a password is a more secure approach, especially when working with [.NET CLI]({% slug nuget-dotnet-cli %}) or the [`NuGet.Config` file]({% slug nuget-config %}).
21
21
22
-
1. Select the **DOWNLOADS** tab and then **Manage NuGet Keys**.
22
+
1. Go to the [API Keys](https://www.telerik.com/account/downloads/api-keys) page in your Telerik account.

25
26
26
-
1. To create a new key, select the **Generate New Key** button.
27
+
1. In the **Key Note** field, add a note that describes the API key.
28
+
1. Click **Generate Key**.
29
+
1. Select **Copy and Close**. Once you close the window, you can no longer copy the generated key. For security reasons, the **API Keys** page displays only a portion of the key.
30
+
1. Store the generated NuGet API key as you will need it in the next steps. Whenever you need to authenticate your system with the Telerik NuGet server, use `api-key` as the username and your generated API key as the password.
27
31
28
-
1. Enter a name for the NuGet Key, and then select **Generate Key**.
29
-
30
-
1. To copy the key, select **Copy and Close**. Once you close the window, you can no longer copy the generated key. For security reasons, the **NuGet Keys** page displays only a portion of the key.
1. Store the generated NuGet API key as you will need it in the next step.
34
+
#reset-store-credentials
35
+
1. Remove the saved credentials in the [Windows Credential Manager](https://support.microsoft.com/en-us/windows/accessing-credential-manager-1b5c916a-6a16-889f-8581-fc16e8165ac0). These credentials will appear as `nuget.telerik.com` or `VSCredentials_nuget.telerik.com` entries.
36
+
2. Remove the Telerik NuGet package source from Visual Studio.
37
+
3. If you have added the Telerik package source by using the .NET CLI, try to remove it by running the following commands:
38
+
*[`dotnet nuget list source`](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-list-source)
4. Check if you have any credentials stored in `%AppData%\NuGet\Nuget.Config`. If so, remove them.
41
+
5. Try to reset the Visual Studio user data by [forcing NuGet to ask for authentication](https://stackoverflow.com/questions/43550797/how-to-force-nuget-to-ask-for-authentication-when-connecting-to-a-private-feed).
42
+
6. Restart Visual Studio.
43
+
7. Add the Telerik NuGet package source again through Visual Studio or .NET CLI. If you are using the Telerik NuGet feed in a .NET Core application, use a [NuGet API key in the NuGet.Config file]({%slug nuget-config %}).
Copy file name to clipboardExpand all lines: get-started/first-steps-vs-code.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,13 +58,15 @@ If you encounter any issues creating the basic project, see the complete guide i
58
58
59
59
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.
60
60
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.
>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 <ahref="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 <ahref="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.
68
70
69
71
## Step 4: Install the Telerik UI for .NET MAUI Controls
Copy file name to clipboardExpand all lines: get-started/first-steps-vs.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,9 @@ If you encounter any issues creating the basic project, see the complete guide i
51
51
52
52
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.
Next, add the Telerik NuGet source to Visual Studio:
55
57
56
58
1. In Visual Studio go to **Tools** > **NuGet Package Manager** > **Package Manager Settings**.
57
59
@@ -61,7 +63,7 @@ To add the Telerik NuGet source to Visual Studio:
61
63
62
64
1. Add the `https://nuget.telerik.com/v3/index.json` URL as a **Source**. Click **OK**.
63
65
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.
65
67
66
68

67
69
@@ -71,7 +73,7 @@ To add the Telerik NuGet source to Visual Studio:
71
73
72
74
2. Install the Telerik UI for .NET MAUI package:
73
75
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.
75
77
76
78
1. Select the **Browse** tab, enter `MAUI` in the search box, and then select the `Telerik.UI.for.Maui` package.
Copy file name to clipboardExpand all lines: installation/nuget/nuget-config.md
+5-14Lines changed: 5 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,10 @@ An alternative way to configure your system to use the Telerik NuGet server is t
13
13
14
14
To configure the Telerik NuGet server as a package source directly in the `nuget.config` file, perform the following steps:
15
15
16
-
1.[Generate a NuGet API key](#generate-a-nuget-key).
16
+
1.[Generate a NuGet API key](#generate-an-api-key).
17
17
1.[Edit the NuGet.Config file](#edit-the-nugetconfig-file).
18
18
19
-
## Generate a NuGet Key
20
-
21
-
Generate a NuGet API key that you will use for the authentication by the Telerik NuGet server. This approach is more secure than using your Telerik credentials in <a href="https://learn.microsoft.com/en-us/nuget/consume-packages/consuming-packages-authenticated-feeds#credentials-in-nugetconfig-files
@@ -34,7 +31,7 @@ Generate a NuGet API key that you will use for the authentication by the Telerik
34
31
35
32
1. In the `nuget.config` file, add the Telerik feed by inserting the line `<add key="MyTelerikFeed" value="https://nuget.telerik.com/v3/index.json" protocolVersion="3"/>`in the `packageSources` section.
36
33
37
-
1. In the `packageSourceCredentials` section, add the [generated NuGet API key](#generate-a-nuget-key). Use `api-key` as a value for the user name.
34
+
1. In the `packageSourceCredentials` section, add the [generated NuGet API key](#generate-an-api-key). Use `api-key` as a value for the user name.
38
35
39
36
```xml
40
37
<configuration>
@@ -52,15 +49,9 @@ Generate a NuGet API key that you will use for the authentication by the Telerik
52
49
</configuration>
53
50
```
54
51
55
-
## Securing Your Credentials
56
-
57
-
This article does not cover the scenario of using your Telerik account credentials as <ahref="https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file#packagesourcecredentials
58
-
"target="_blank">plain text</a> in the `NuGet.Config` file due to security concerns. However, you can still use the <ahref="https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file#packagesourcecredentials
59
-
"target="_blank">plain text</a> approach if you must.
52
+
## Securing Your API Key
60
53
61
-
>warning
62
-
>* Never hard-code Telerik account credentials or NuGet API keys in a `NuGet.Config` file in a GitHub repository, Docker image, or any location that may be accessed by unauthorized parties. A NuGet key is valuable and bad actors can use it to access the NuGet packages that are licensed under your account. A credentials abuse can lead to a review of the affected Telerik account.
63
-
>* If you use single sign-on (SSO) to login into your Telerik account, always use a [NuGet API key]({%slug nuget-keys%}) instead of plain text credentials in the `NuGet.Config` file.
54
+
Never hard-code NuGet API keys in a `NuGet.Config` file in a GitHub repository, Docker image, or any location that may be accessed by unauthorized parties. A NuGet API key is valuable and bad actors can use it to access the NuGet packages that are licensed under your account. A credentials abuse can lead to a review of the affected Telerik account.
64
55
65
56
For more details about the `NuGet.Config` file, see the following Microsoft resources:
66
57
* <ahref="https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file#packagesources"target="_blank">Configuring the NuGet package sources</a>
Copy file name to clipboardExpand all lines: installation/nuget/nuget-keys.md
+13-20Lines changed: 13 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Using NuGet in CI Workflows
3
3
page_title: Using NuGet Packages in CI Workflows
4
-
description: Learn how to use NuGet Keys to authenticate with the Telerik NuGet server and restore Telerik UI for .NET MAUI packages in your CI or desktop environment.
4
+
description: Learn how to use API Keys to authenticate with the Telerik NuGet server and restore Telerik UI for .NET MAUI packages in your CI or desktop environment.
5
5
slug: nuget-keys
6
6
position: 8
7
7
---
@@ -10,48 +10,41 @@ position: 8
10
10
11
11
This article describes how to use token-based authentication for the Telerik NuGet feed. You will learn how to create and use NuGet API keys to restore Telerik NuGet packages in your Continuous Integration (CI) workflow.
12
12
13
-
The Telerik NuGet server allows you to authenticate by using two methods:
13
+
When you need to restore Telerik NuGet packages as part of your CI, using API Keys provides a secure way to authenticate. This method does not require you to provide your Telerik username and password anywhere in the CI workflow. Unlike your Telerik credentials, an API Key has a limited scope and can be used only with the Telerik NuGet server. If any of your API Keys is compromised, you can quickly delete it and create a new one.
14
14
15
-
* Basic authentication by providing your Telerik user name and password.
16
-
* Token-based authentication by providing a NuGet key (recommended).
17
-
18
-
When you need to restore Telerik NuGet packages as part of your CI, using NuGet keys is the more secure way to authenticate. This method does not require you to provide your Telerik username and password anywhere in the CI workflow.
19
-
20
-
Unlike your Telerik credentials, a NuGet Key has a limited scope and can be used only with the Telerik NuGet server. If any of your NuGet keys is compromised, you can quickly delete it and create a new one.
> Never check in a NuGet Key with your source code or leave it publicly visible in plain text, for example, as a raw key value in a `nuget.config` file. A NuGet Key is valuable as bad actors can use it to access the NuGet packages that are licensed under your account. A potential key abuse can lead to a review of the affected account.
21
+
> Never check in an API Key with your source code or leave it publicly visible in plain text, for example, as a raw key value in a `NuGet.Config` file. An API Key is valuable, as bad actors can use it to access the NuGet packages that are licensed under your account. A potential key abuse can lead to a review of the affected account.
29
22
30
-
To protect the NuGet Key, store it as a secret environment variable. The exact steps depend on your workflow:
23
+
To protect the API Key, store it as a secret environment variable. The exact steps depend on your workflow:
31
24
32
25
* In GitHub Actions, save the key as a GitHub Actions Secret. Go to **Settings** > **Security** > **Secrets** > **Actions** > **Add new secret**.
33
26
34
27
* In Azure DevOps Classic, save the key as a secret pipeline variable. Go to the **Variables** tab and then select **Pipeline variables**.
35
28
36
29
* In Azure DevOps YAML pipelines, save the key as a secret variable as well. Click the YAML editor's **Variables** button and complete the **New variable** form.
37
30
38
-
If you use Azure DevOps Service connection instead of secret environment variables, enter `api-key` in the username filed and the NuGet Key as the password in the **New NuGet service connection** form editor.
31
+
If you use Azure DevOps Service connection instead of secret environment variables, enter `api-key` in the username filed and the API Key as the password in the **New NuGet service connection** form editor.
39
32
40
-
For more details on storing and protecting your NuGet Key, check the [Announcing NuGet Keys](https://www.telerik.com/blogs/announcing-nuget-keys) blog post by Lance McCarthy.
33
+
For more details on storing and protecting your API Key, check the [Announcing NuGet Keys](https://www.telerik.com/blogs/announcing-nuget-keys) blog post by Lance McCarthy.
41
34
42
-
## Using a NuGet Key
35
+
## Using an API Key
43
36
44
37
There are two popular ways to use the Telerik NuGet server in a build:
45
38
46
-
*[Using a nuget.config file with your projects](#using-a-nugetconfig-file-with-your-projects)
39
+
*[Using a NuGet.Config file with your projects](#using-a-nugetconfig-file-with-your-projects)
47
40
48
41
*[Using only CLI commands](#using-only-cli-commands)
49
42
50
-
For more information on how to use NuGet keys in a build, check the [Announcing NuGet Keys](https://www.telerik.com/blogs/announcing-nuget-keys) blog post by Lance McCarthy.
43
+
For more information on how to use API Keys in a build, check the [Announcing NuGet Keys](https://www.telerik.com/blogs/announcing-nuget-keys) blog post by Lance McCarthy.
51
44
52
45
### Using a NuGet.Config File with Your Projects
53
46
54
-
**1.** In your `nuget.config` file, set the `Username` value to `api-key` and the `ClearTextPassword` value to an environment variable name:
47
+
**1.** In your `NuGet.Config` file, set the `Username` value to `api-key` and the `ClearTextPassword` value to an environment variable name:
55
48
56
49
```xml
57
50
<configuration>
@@ -75,7 +68,7 @@ The exact steps to set the `MY_API_KEY` environment variable depend on your work
75
68
76
69
### Using .NET CLI Commands
77
70
78
-
You can use the CLI `add source` (or `update source`) command to set the credentials of a package source. This CLI approach is applicable if your CI system doesn't support default environment variable secrets or if you do not use a custom `nuget.config`.
71
+
You can use the CLI `add source` (or `update source`) command to set the credentials of a package source. This CLI approach is applicable if your CI system doesn't support default environment variable secrets or if you do not use a custom `NuGet.Config`.
Copy file name to clipboardExpand all lines: installation/nuget/nuget-troubleshooting.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,13 +32,13 @@ You can quickly test your credentials or a specific package search results, the
32
32
1. Enter [https://nuget.telerik.com/v3/index.json](https://nuget.telerik.com/v3/index.json) in the address bar and hit `Enter`.
33
33
1. The web browser will prompt you to login, enter the credentials you want to test. You can test either:
34
34
* Telerik Account credentials (email address and password)
35
-
* Telerik NuGet Key (username "api-key", password is the full key value)
35
+
* Telerik API Key (username "api-key", password is the full key value)
36
36
1. You should now see a json result containing the general index listing. This confirms a successful login!
37
37
1. Confirm Package Listing
38
38
1. Enter [https://nuget.telerik.com/v3/search?q=telerik.ui.for.maui](https://nuget.telerik.com/v3/search?q=telerik.ui.for.maui) in the address bar and hit Enter.
39
39
1. You should now see a json result containing a list of available packages that match the query.
40
-
1. If you want to try again with different credentials (i.e. a different nuget key), close the incognito browser session and open a new one.
40
+
1. If you want to try again with different credentials (i.e. a different NuGet API key), close the incognito browser session and open a new one.
41
41
42
-
>Tip If you get an error at any point in this process, review the list above for the specific error message and follow those dedicated instructions. For example, you may need to visit the [401 Unauthorized]({%slug error-unauthorized%}) or [401 Logon failed error]({%slug error-login-failed%}) articles. Alternatively, if you authenticate and get a json response, but the package version you're expecting isn't listed, the [Package Version Not Found]({%slug package-version-not-found%}) article is more relevant.
42
+
>Tip If you get an error at any point in this process, review the list above for the specific error message and follow those dedicated instructions. For example, you may need to visit the [401 Unauthorized]({%slug error-unauthorized%}) or [401 Logon failed error]({%slug error-login-failed%}) articles. Alternatively, if you authenticate and get a json response, but the package version you're expecting isn't listed, the [Package Version Not Found]({%slug package-version-not-found%}) article is more relevant.
0 commit comments