Redocly / Redocly/redoc

"Authorizations" sections contain links to "Authentication" section even when noAutoAuth is true

Open
#1,467 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
Dominant language
TypeScript
Stars
25.9k
Forks
2.4k
Avg merge
13h 10m
Merged PRs (30d)
4

Description

Hi,

When I initialize standalone ReDoc using Redoc.init, if I set the noAutoAuth option to true in the <redoc> options object, the "Authentication" section isn't automatically injected, as expected.

However, an "Authorizations" section is injected for each endpoint, and the authorizations listed in those sections will link to the corresponding (bhut non-existing) "Authentication" section.

redoc_noautoauth_bug

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with standalone Redoc.init and the noAutoAuth option set to true, then inspect how the generated Authorizations links target the Authentication section. Done means the resulting documentation contains no links to a non-existing Authentication section when automatic authentication is disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.