docs(cli-generator): document built-in auth command merging - #6485
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
docs(cli-generator): document built-in auth command merging#6485devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
…sion 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:
|
Contributor
|
🌿 Preview your docs: https://fern-preview-devin-1785517716-cli-generator-auth-commands.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
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
End users of a generated CLI can now log in through the browser (authorization code + PKCE) or a device code without a client secret, and APIs that define their own
authoperations no longer lose them to the framework's built-inauth login/logout/status. This updates the CLI generator authentication page with the command-merging behavior and its collision rule, and corrects the minimum generator version for the public-client OAuth flows.Implements docs for: feat(cli): wire OAuth public-client login flows (PKCE + device-code) (fern-api/fern#17277) and fix(cli-generator): fold built-in auth commands into a spec-owned auth group (fern-api/fern#17286)
The OAuth flow configuration itself (flow types,
redirect-uri, extra parameter maps, login UX) was already documented in #6475, so this PR only fills the gaps:authentication.mdx— built-inlogin/logout/status(andcompletion/man) fold into a spec-defined group of the same name, somy-cli auth meandmy-cli auth loginboth dispatch; exact leaf collisions resolve in favor of the built-in, withx-fern-sdk-method-nameas the workaround. Also notes that PKCE always applies toauthorization-codewithS256as the only challenge method, and fixes the stated minimum generator version (0.29.0→0.30.0, pergenerators/cli/versions.yml).openapi-extensions.mdx— one sentence underx-fern-sdk-method-namepointing at the collision workaround.Vale and
fern check --warningspass (remaining warnings are preexisting).Link to Devin session: https://app.devin.ai/sessions/0aab9a94686d48c38b86733540659c5f