Skip to content

[Repo Assist] docs: add HTTP Authentication section to Http.fsx#1674

Draft
github-actions[bot] wants to merge 2 commits intomainfrom
repo-assist/docs-issue-158-http-authentication-ca59e1be4bc91041
Draft

[Repo Assist] docs: add HTTP Authentication section to Http.fsx#1674
github-actions[bot] wants to merge 2 commits intomainfrom
repo-assist/docs-issue-158-http-authentication-ca59e1be4bc91041

Conversation

@github-actions
Copy link
Contributor

🤖 This PR was created by Repo Assist, an automated AI assistant.

Adds a new HTTP Authentication section to docs/library/Http.fsx, covering the three most common authentication patterns using the existing HttpRequestHeaders helpers and customizeHttpRequest.

What's documented

Basic authentication

Http.RequestString(
    "(api.example.com/redacted),
    headers = [ HttpRequestHeaders.BasicAuth "myUsername" "myPassword" ]
)

Bearer / token authentication (OAuth 2.0, PATs)

Http.RequestString(
    "https://api.github.com/user",
    headers =
        [ HttpRequestHeaders.Authorization(sprintf "Bearer %s" token)
          HttpRequestHeaders.UserAgent "MyApp" ]
)

Windows / NTLM integrated authentication

Http.RequestString(
    "(intranet.example.com/redacted),
    customizeHttpRequest = fun req ->
        req.UseDefaultCredentials <- true
        req
)

Why

Issue #158 has been open since 2013 asking for HTTP authentication support. The required functionality (HttpRequestHeaders.BasicAuth, HttpRequestHeaders.Authorization, and customizeHttpRequest) was already implemented — it just wasn't documented. This PR adds the missing documentation.

No code changes are needed; this is a documentation-only PR.

Closes #158

Test Status

Documentation-only change; no build or test failures expected.

Generated by Repo Assist for issue #158

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@afb00b92a9514fee9a14c583f059a03d05738f70

Document Basic Auth, Bearer token, and Windows/NTLM auth patterns
using the existing HttpRequestHeaders helpers and customizeHttpRequest.

Closes #158

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Http authentication

0 participants