Skip to content

feat: add guide for authenticating with a script#15

Merged
jeswr merged 2 commits intofeat/script-authenticationfrom
copilot/sub-pr-14
Feb 18, 2026
Merged

feat: add guide for authenticating with a script#15
jeswr merged 2 commits intofeat/script-authenticationfrom
copilot/sub-pr-14

Conversation

Copy link

Copilot AI commented Feb 18, 2026

Adds a guide for authenticating Node.js scripts with Solid servers using Client Credentials — covering automated pipelines, bots, CI/CD, and server-to-server integrations where browser-based auth isn't available.

  • New guide (docs/guides/authenticating_with_a_script.md): Step-by-step walkthrough covering project setup, credential generation (UI and API), and authenticated requests using @inrupt/solid-client-authn-node
  • Index update (docs/index.md): Added link to the new guide
  • All config via env vars: SOLID_CLIENT_ID, SOLID_CLIENT_SECRET, and SOLID_OIDC_ISSUER are all loaded from environment variables — no hardcoded server URLs that silently fail
  • Cross-platform instructions: Separate Bash and PowerShell examples for setting env vars
const CLIENT_ID = process.env.SOLID_CLIENT_ID;
const CLIENT_SECRET = process.env.SOLID_CLIENT_SECRET;
const OIDC_ISSUER = process.env.SOLID_OIDC_ISSUER;

Related:


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…tform instructions

Co-authored-by: jeswr <63333554+jeswr@users.noreply.github.com>
Copilot AI changed the title [WIP] Add guide for authenticating Node.js scripts with Solid servers feat: add guide for authenticating with a script Feb 18, 2026
Copilot AI requested a review from jeswr February 18, 2026 21:35
@jeswr jeswr marked this pull request as ready for review February 18, 2026 21:37
@jeswr jeswr requested a review from a team as a code owner February 18, 2026 21:37
Copilot AI review requested due to automatic review settings February 18, 2026 21:37
@jeswr jeswr merged commit 23adeec into feat/script-authentication Feb 18, 2026
2 checks passed
@jeswr jeswr deleted the copilot/sub-pr-14 branch February 18, 2026 21:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the Node.js script authentication guide by making all configuration fully environment-variable based and adding cross-platform setup instructions. Previously, the OIDC_ISSUER (Solid server URL) was hardcoded while other credentials were loaded from environment variables, creating an inconsistency. The update makes the guide more production-ready and accessible to developers on different operating systems.

Changes:

  • Modified OIDC_ISSUER to load from process.env.SOLID_OIDC_ISSUER instead of using a hardcoded value
  • Added cross-platform environment variable setup instructions with separate examples for Bash (Linux/macOS) and PowerShell (Windows)
  • Enhanced documentation with clearer guidance on passing all three required environment variables when running the script

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants

Comments