docs: architecture diagrams and MDM rollout guidance for Claude Code + Okta JWT auth - #925
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
docs: architecture diagrams and MDM rollout guidance for Claude Code + Okta JWT auth#925devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
…ode okta jwt auth Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The Claude Code + Okta JWT page explained how to configure the pieces but not how the pieces fit together or how to ship them to a fleet, which is the part enterprises ask about once they have validated the flow by hand. Adds two mermaid diagrams (component view of workstation, Okta, proxy, DB, providers; sequence view of first-run device grant, per-request JWKS validation plus user upsert, and silent refresh on later runs) and replaces the three-sentence rollout note with a real rollout section.
Rollout now covers why managed settings rather than
~/.claude/settings.json(they cannot be overridden locally, so they are what pins traffic to the proxy), the per-platform managed-settings paths, helper install location and permissions, and why the per-user token cache at$HOME/.claude/okta_token.jsonis what makes a shared SSH lab server safe.Windows was previously unaddressed. Adds Intune/GPO delivery via the
Settingsvalue underHKLM\SOFTWARE\Policies\ClaudeCode, a.cmdshim soapiKeyHelperinvokes PowerShell without execution-policy or quoting problems, and a PowerShell port of the bash helper with the same cache-then-refresh-then-device-flow shape:Invoke-RestMethodthrows on Okta's 400authorization_pending, so the helper reads the body out of$_.ErrorDetails.Messageinstead of treating it as fatal, and the cache is locked down withicacls /inheritance:r. The PowerShell logic was exercised against a mock device-grant server across all three paths (device flow, cache hit, expired then refresh); theicaclsline is Windows-only and unverified here.Closes out with operational guidance: pilot first and confirm attribution under Internal Users, upgrade/rollback by redeploying the file, and how to read the two common failure modes (unexpected sign-in prompts mean a revoked or expired refresh token; auth errors usually mean an audience mismatch).
Link to Devin session: https://app.devin.ai/sessions/b49f63ae7081413882a0be7d57eff15f
Requested by: @mateo-berri