Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 20, 2026

Summary

Improves documentation for api.auth to better explain how to specify a default security scheme across the API. Previously, the documentation was sparse and didn't clearly connect where you define authentication schemes (auth-schemes) with where you apply them (api.auth).

Changes to generators.yml reference:

  • Added a Note in the auth-schemes section pointing users to api.auth for applying schemes as the default
  • Expanded the api.auth ParamField with a clear explanation of what it does and what values it accepts
  • Added a complete two-step example showing how to define a scheme and then apply it
  • Included SDK usage example showing the result
  • Changed the type from "object" to "string" to accurately reflect that it accepts a scheme name reference

Changes to OpenAPI auth page:

  • Restructured page with clear two-section approach: "Configure authentication in your spec" vs "Customize or override authentication in generators.yml"
  • Added intro clarifying that auth configuration applies across all Fern products: SDKs, API Reference docs, and API Explorer
  • Reorganized auth schemes into AccordionGroups for better readability
  • Added cross-references to generators.yml reference for full details

Changes to API Explorer page:

  • Updated Authentication section to mention that auth can also be configured in generators.yml
  • Added Tip with cross-reference to the Authentication page

Review & Testing Checklist for Human

  • Verify the type change from "object" to "string" is accurate for api.auth (it should accept a string referencing a scheme name)
  • Check that the internal anchor links work: #auth-schemes and #auth on the generators.yml reference page
  • Important: Anchor #multiple-authentication-schemes was renamed to #multiple-auth-schemes - check if any external pages link to the old anchor
  • Important: The old anchor #override-api-authentication-settings was renamed - check if any other pages link to this and need redirects
  • Review all three preview pages to ensure the documentation renders correctly:
    • generators.yml reference: /learn/sdks/reference/generators-yml#auth
    • OpenAPI auth page: /learn/api-definitions/openapi/auth
    • API Explorer page: /learn/docs/api-references/api-explorer

Notes

Requested by: kenny
Devin session: https://app.devin.ai/sessions/30976867fe374d578a9933819c799d71

- Expand api.auth ParamField to explain what it does and what values it accepts
- Add complete example showing the two-step workflow: define scheme, then apply it
- Add Note in auth-schemes section pointing users to api.auth
- Include SDK usage example showing the result

Co-Authored-By: kenny@buildwithfern.com <kenny@buildwithfern.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Contributor

- Add Note at top of page pointing users to generators.yml for setting default auth
- Rename 'Override security scheme' to 'Set default authentication in generators.yml'
- Add complete two-step example showing how to define and apply auth schemes
- Include SDK usage example showing the result
- Add cross-references to generators.yml reference for full details

Co-Authored-By: kenny@buildwithfern.com <kenny@buildwithfern.com>
@devin-ai-integration devin-ai-integration bot changed the title docs: improve api.auth documentation with complete example docs: improve api.auth documentation with complete examples Feb 4, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

### Multiple auth schemes

You can configure endpoints to support multiple authentication schemes or combinations of schemes. In the `security` section, multiple security requirement objects (top-level list items) are treated as OR options, while multiple schemes within a single object are combined with AND.
Configure endpoints to support multiple authentication schemes or combinations. In the `security` section, multiple top-level items are OR options, while schemes within a single item are combined with AND.
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'AND' has no definition.

devin-ai-integration bot and others added 2 commits February 4, 2026 22:10
- Update OpenAPI auth page intro to clarify auth applies across all Fern products
- Update API Explorer page to mention generators.yml auth configuration
- Add cross-references between pages

Co-Authored-By: kenny@buildwithfern.com <kenny@buildwithfern.com>
@devalog devalog merged commit c0274cb into main Feb 4, 2026
2 checks passed
@devalog devalog deleted the devin/1768950623-improve-api-auth-docs branch February 4, 2026 23:27
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