-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[Update] docs: update access token creation instructions #1774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ You can [create](#creating-access-tokens) and [view](#viewing-access-tokens) acc | |
|
|
||
| <Screenshot src="/integrations/integrating-npm-with-external-services/tokens-profile.png" alt="Screenshot of the account menu with the tokens link selected" /> | ||
|
|
||
| 2. Click **Generate New Token**, then click **Granular Access Token**. | ||
| 2. Click **Generate New Token**. | ||
|
|
||
| <Screenshot src="/integrations/integrating-npm-with-external-services/create-token.png" alt="Screenshot of the create new token button" /> | ||
|
|
||
|
|
@@ -26,28 +26,30 @@ You can [create](#creating-access-tokens) and [view](#viewing-access-tokens) acc | |
| - This setting is unchecked (false) by default | ||
| - By checking this box, the token will bypass 2FA for write actions even if 2FA is enabled at the account or package level | ||
|
|
||
| 6. In the **Expiration** field, enter a token expiration period. The date must be at least 1 day in the future. | ||
|
|
||
| 7. (Optional) In the **Allowed IP Ranges** field, enter IP address ranges to restrict your access token to. You must use [CIDR][cidr-wiki] notation to enter IP address ranges. To add more than one allowed IP range, click **Add IP Range** and enter an IP range in the new text field. | ||
| 6. (Optional) In the **Allowed IP Ranges** field, enter IP address ranges to restrict your access token to. You must use [CIDR][cidr-wiki] notation to enter IP address ranges. To add more than one allowed IP range, click **Add IP Range** and enter an IP range in the new text field. | ||
|
|
||
| <Screenshot src="/integrations/integrating-npm-with-external-services/granular-access-token-ip-range.png" alt="Screenshot of the allowed IP ranges section" /> | ||
|
|
||
| 8. (Optional) In the **Packages and scopes** section, configure your token's access to packages and scopes. | ||
| 7. (Optional) In the **Packages and scopes** section, configure your token's access to packages and scopes. | ||
| - In the **Permissions** dropdown menu, select **No access**, **Read-only**, or **Read and write**. | ||
| - Under **Select Packages**, select either: | ||
| - **All Packages** to grant the token access to all packages the user account has access to. | ||
| - **Only select packages and scopes** to choose up to 50 specific packages or scopes to give the token access to. Then select specific packages or scopes from the dropdown menu. | ||
|
|
||
| <Screenshot src="/integrations/integrating-npm-with-external-services/granular-access-token-packages-scopes.png" alt="Screenshot of the packages and scopes section" /> | ||
|
|
||
| 9. (Optional) In the **Organizations** section, configure your token's access to organizations. | ||
| 8. (Optional) In the **Organizations** section, configure your token's access to organizations. | ||
| - In the **Permissions** dropdown menu, select **No access**, **Read-only**, or **Read and write**. | ||
| - Under **Select organizations**, select the organizations you want to grant your token access to. | ||
|
|
||
| <Screenshot src="/integrations/integrating-npm-with-external-services/granular-access-token-organizations.png" alt="Screenshot of the organizations section" /> | ||
|
|
||
| _**Note**: When you give a token access to an organization, the token can only be used for managing organization settings and teams or users associated with the organization. It does not give the token the right to publish packages managed by the organization._ | ||
|
|
||
| 9. In the **Expiration** field, select a token expiration period from the dropdown menu. You can choose from predefined options or select Custom to specify a custom expiration date using the date picker. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| _**Note**: The date must be at least 1 day in the future._ | ||
|
|
||
| 10. Review the token summary, then click **Generate Token**. | ||
|
|
||
| <Screenshot src="/integrations/integrating-npm-with-external-services/granular-access-token-summary.png" alt="Screenshot of the granular access token summary and the generate token button" /> | ||
|
|
||
Binary file modified
BIN
+3.2 KB
(110%)
static/integrations/integrating-npm-with-external-services/create-token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.