OpenAPITools / OpenAPITools/openapi-generator

typescript-axios needs to let functions know if allows anonymous

Open
#22,751 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

When the code generates a function that supports both anonymous and other authentications methods. If the other methods are functions, it needs to pass something to the function to let it know that anonymous is allowed on the endpoint. Ex. when calling accessToken, I need to know if the endpoint supports anonymous so that i know if the authentication for getting a token fails, to not redirect to the login server for the user to login. To just ignore the failure to get token and return undefined.

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 locating the typescript-axios authentication-function generation and the accessToken handling described in the issue. Reproduce an endpoint that permits anonymous access alongside function-based authentication, then trace the generated client behavior. Done means the generated function can distinguish anonymous support and avoids redirecting when token retrieval fails for such an endpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.