Skip to content

procedures: add Device Auth Tokens documentation - #3168

Open
tolusha wants to merge 1 commit into
mainfrom
docs-device-auth-tokens
Open

procedures: add Device Auth Tokens documentation#3168
tolusha wants to merge 1 commit into
mainfrom
docs-device-auth-tokens

Conversation

@tolusha

@tolusha tolusha commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What does this pull request change?

Adds documentation for the new Device Auth Tokens tab in User Preferences, introduced in eclipse-che/che-dashboard#1633.

New article: modules/end-user-guide/pages/connecting-to-github-using-device-authorization.adoc

  • Procedure for connecting a GitHub account using the device authorization flow from the Dashboard
  • Reconnect procedure for replacing an existing token when it is revoked or expired on the GitHub side
  • Steps for deleting and revoking device auth tokens (single and bulk)
  • Troubleshooting section for expired one-time codes

Updated article: modules/administration-guide/partials/proc_setting-up-the-github-oauth-app.adoc

  • Optional steps to enable Device Flow on the GitHub OAuth App
  • Step to create the device-auth-config ConfigMap in the {prod-short} namespace, which enables the Connect to GitHub button in the Dashboard

Updated assembly: modules/administration-guide/pages/configuring-oauth-2-for-github.adoc

  • Added a NOTE for admins who previously configured a GitHub OAuth App and want to enable Device Auth Tokens

Navigation: Updated modules/end-user-guide/nav.adoc to include the new article under Using credentials and configurations in workspaces > Mounting secrets.

What issues does this pull request fix or reference?

Specify the version of the product this pull request applies to

next

Pull Request checklist

The author and the reviewers validate the content of this pull request with the following checklist, in addition to the automated tests.

  • Any procedure:
    • Successfully tested.
  • Any page or link rename:
    • The page contains a redirection for the previous URL.
    • Propagate the URL change in:
  • Builds on Eclipse Che hosted by Red Hat.
  • the Validate language on files added or modified step reports no vale warnings.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

Click here to review and test in web IDE: Contribute

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

🎊 Navigate the preview: https://6a7f0e189df0b22221ae60ed--eclipse-che-docs-pr.netlify.app 🎊

@olexii4
olexii4 marked this pull request as ready for review July 22, 2026 15:26
@olexii4
olexii4 requested a review from l0rd July 22, 2026 15:26

@olexii4 olexii4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@olexii4 olexii4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

G1. PR checklist items unchecked

All four checklist items remain unchecked. Vale validation can be run independently of the dashboard feature (che-dashboard#1633), which is still open. Worth confirming Vale is clean before merge.


G2. Deletion subsection discoverability

The == Deleting device auth tokens subsection (anchor #deleting-device-auth-tokens) has no nav entry - it is only reachable by scrolling to the bottom of the connect page. Users searching for "delete device auth token" may not find it through navigation. Consider whether a nav sub-entry pointing to the anchor would help, or whether keeping it on the same page is sufficient.


G3. No troubleshooting for known error scenarios

The dashboard handles five distinct error states during the device flow: device_flow_disabled, expired_token, access_denied, slow_down, and generic GitHub API errors. The device_flow_disabled error produces a specific message directing users to contact their admin. At minimum, a troubleshooting note for the expired_token case (codes typically expire after 15 minutes) would help users know to retry rather than report a bug.


G4. Token lifecycle not documented

The article covers creation and deletion but not: whether tokens expire, whether they are refreshed automatically, or what happens to running workspaces when a token is deleted or the GitHub authorization is revoked from the GitHub side. These are operational questions users will encounter in production.

Comment thread modules/end-user-guide/pages/connecting-to-github-using-device-authorization.adoc Outdated
Comment thread modules/end-user-guide/nav.adoc Outdated
Comment thread modules/end-user-guide/pages/connecting-to-github-using-device-authorization.adoc Outdated
Comment thread modules/administration-guide/partials/proc_setting-up-the-github-oauth-app.adoc Outdated
Comment thread modules/end-user-guide/pages/connecting-to-github-using-device-authorization.adoc Outdated
Comment thread modules/end-user-guide/pages/connecting-to-github-using-device-authorization.adoc Outdated

@olexii4 olexii4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second-round findings, additive to olexii4's review. Items addressed by the second commit (title form, nav placement, link redundancy, step splitting, additional resources context) are not repeated. The inline comments below cover new findings.


G5. Existing installations: new admin step is not surfaced at assembly level

The Device Flow steps are appended at the end of the initial-setup procedure. An administrator who already configured the GitHub OAuth App will not revisit that procedure to discover the new step. The parent assembly page configuring-oauth-2-for-github.adoc has no note calling out this new option. Consider adding a brief note at the assembly level - for example: "If you previously configured a GitHub OAuth App and want to enable Device Auth Tokens for your users, enable Device Flow as described in the setup procedure."

Comment thread modules/administration-guide/partials/proc_setting-up-the-github-oauth-app.adoc Outdated
Comment thread modules/administration-guide/partials/proc_setting-up-the-github-oauth-app.adoc Outdated
Comment thread modules/end-user-guide/pages/connecting-to-github-using-device-authorization.adoc Outdated
Comment thread modules/end-user-guide/pages/connecting-to-github-using-device-authorization.adoc Outdated
Comment thread modules/end-user-guide/pages/connecting-to-github-using-device-authorization.adoc Outdated
@olexii4
olexii4 force-pushed the docs-device-auth-tokens branch from 0a1bc7c to 2d04f2f Compare July 28, 2026 11:44
@olexii4
olexii4 force-pushed the docs-device-auth-tokens branch from 2d04f2f to c9927eb Compare August 13, 2026 14:52
@svor

svor commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

@olexii4 please check PR checks

@svor svor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Documents the Device Auth Tokens tab in User Preferences introduced
in eclipse-che/che-dashboard#1633.

New article (connecting-to-github-using-device-authorization.adoc):
- Connect to GitHub using the device authorization flow (RFC 8628)
- Reconnect to replace a revoked or expired token in-place
- Delete a single token or multiple tokens in bulk
- Troubleshooting for expired one-time codes

Updated admin procedure (proc_setting-up-the-github-oauth-app.adoc):
- Optional steps to enable Device Flow on the GitHub OAuth App
- Step to create the device-auth-config ConfigMap that enables the
  Connect to GitHub button in the Dashboard

Updated assembly (configuring-oauth-2-for-github.adoc):
- NOTE for admins who already configured the OAuth App and want
  to enable Device Auth Tokens without repeating the full setup

Navigation: added the new article under Using credentials and
configurations in workspaces > Mounting secrets.

Assisted-by: Claude Sonnet 4.6
Signed-off-by: Oleksii Orel <oorel@redhat.com>
@olexii4
olexii4 force-pushed the docs-device-auth-tokens branch from c9927eb to ede3e33 Compare August 14, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants