Align Rust SDK auth docs with Go SDK structure (#8557)
* Align Rust SDK auth docs with Go SDK structure
- Create 6 new auth doc files mirroring Go's structure:
- local-development-dev-accounts.md (DeveloperToolsCredential, AzureCliCredential)
- local-development-service-principal.md (ClientSecretCredential)
- system-assigned-managed-identity.md (ManagedIdentityCredential)
- user-assigned-managed-identity.md (ManagedIdentityCredential with UserAssignedId)
- authentication-on-premises-apps.md (ClientSecretCredential for on-prem)
- authentication-additional-methods.md (certificates, workload identity, pipelines)
- Rewrite authentication overview as hub page with links to sub-pages
- Create Rust-specific implement-managed-identity-concepts include
- Expand TOC.yml Authentication section with sub-pages
- Update index.yml landing page with new auth links
- Reuse cross-language shared includes for managed identity, app registration,
Entra groups, role assignment, and sign-in procedures
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix Rust code samples to match azure_identity 0.32.0 API signatures
- user-assigned-managed-identity.md: Fix field name 'id' -> 'user_assigned_id'
- ClientSecretCredential: Fix tenant_id to &str, secret to Secret::new()
- ClientCertificateCredential: Fix certificate param to Secret type
- AzurePipelinesCredential: Add missing system_access_token param, fix
service_connection_id to &str
- Convert 4 absolute learn.microsoft.com links to relative paths
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address PR review feedback: fix abbreviations, update API, add snippets
- Remove abbreviations in TOC.yml and index.yml ('Auth' -> 'Authenticate')
- Remove numbered section headings in authentication-on-premises-apps.md
- Apply text suggestion for Differences section wording
- Update ClientCertificateCredential example for SecretBytes API (SDK PR #3807)
- Create snippets/authentication/ Rust crate with compilable example files
- Replace inline code blocks with :::code snippet references in all auth docs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix snippets Cargo.toml to use git deps for unreleased SDK, add lockfile
Use git dependencies from Azure/azure-sdk-for-rust main branch since
azure_core 0.33 (with SecretBytes) is not yet published to crates.io.
Add vendored OpenSSL for portability. All 9 examples pass cargo check.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update articles/rust/sdk/authentication/authentication-on-premises-apps.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Update articles/rust/sdk/authentication/authentication-on-premises-apps.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Update articles/rust/sdk/authentication/authentication-on-premises-apps.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Update articles/rust/sdk/authentication/authentication-on-premises-apps.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Address round 2 PR feedback: pin deps, remove snippet markers, rename files, shared includes
- Pin git dependencies to commit rev 32ef93244 for reproducible builds
- Remove snippet region markers from all example files; use whole-file includes
- Split local_dev_accounts.rs into 3 separate example files for whole-file refs
- Remove 'authentication-' prefix from file names (redundant in authentication/ dir)
- Replace legacy 'active_directory_tenant_id' placeholder with 'entra_tenant_id'
- Replace inline app registration and role assignment sections with shared includes
- Update all TOC.yml, overview.md, and :::code references accordingly
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address scottaddie review feedback
- Swap TOC order: developer account before service principal for language consistency
- Rename heading to 'Set the app environment variables' in on-premises-apps.md
- Rename heading to 'Implement the code' in on-premises-apps.md
- Extract env vars section into shared include file (set-environment-variables-rust.md)
Used by both local-development-service-principal.md and on-premises-apps.md
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs: add object ID and resource ID options for user-assigned managed identity
Expands the user-assigned managed identity authentication doc to cover
all three UserAssignedId variants supported by the Rust SDK:
- ClientId (existing)
- ObjectId (new)
- ResourceId (new, with App Service limitation note)
Addresses scottaddie review feedback referencing the azure_identity
ManagedIdentityCredential source code.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update articles/rust/sdk/authentication/local-development-dev-accounts.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Update articles/rust/sdk/authentication/system-assigned-managed-identity.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Update articles/rust/sdk/authentication/user-assigned-managed-identity.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Update articles/rust/sdk/authentication/user-assigned-managed-identity.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Restructure rust snippets as Cargo workspace; switch to crates.io 0.35/0.14
- articles/rust/snippets/Cargo.toml is now the workspace root with
resolver = "2" and [workspace.dependencies] for azure_core 0.35,
azure_identity 0.35, azure_security_keyvault_secrets 0.14, and tokio 1.
- authentication crate consumes those via { workspace = true }; cert
example keeps the client_certificate feature; async-trait + openssl
remain as crate-local deps.
- Single shared Cargo.lock + .gitignore at the workspace root so future
service-area members (keyvault, storage, cosmos, ...) can be added
without per-area lockfiles.
- Drop authentication/src/lib.rs — every snippet is a self-contained
examples/*.rs program.
- Pin rust-toolchain.toml to channel = "stable".
Verified locally: cargo check --workspace --examples succeeds.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix clippy warnings via workspace lint config (manifest-only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Remove "Differences from the Go Azure Identity library" section
This SDK-to-SDK comparison reads as internal context rather than customer
guidance. Removing from the public docs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address Rust authentication review feedback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 51397acb-694d-4c75-81fb-364b8117c210
* Apply Rust documentation style suggestions
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 51397acb-694d-4c75-81fb-364b8117c210
* Apply batched suggestions from code review
Co-authored-by: learn-build-service-prod-09[bot] <274431102+learn-build-service-prod-09[bot]@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Ronnie Geraghty <ronniegeraghty@github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Ronnie Geraghty <28957151+ronniegeraghty@users.noreply.github.com>
Co-authored-by: Ronnie Geraghty <ronniegeraghty@users.noreply.github.com>
Co-authored-by: Heath Stewart <heaths@microsoft.com>
Co-authored-by: Heath Stewart <heaths@outlook.com>
Co-authored-by: learn-build-service-prod-09[bot] <274431102+learn-build-service-prod-09[bot]@users.noreply.github.com>
Copilot-Session: 51397acb-694d-4c75-81fb-364b8117c210