OpenAPITools / OpenAPITools/openapi-generator

[FEATURE] [SPRING-CLOUD] Configuration for token and authorization url

Open
#3,373 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Is your feature request related to a problem? Please describe.

There is no way to override the token url and authorization url in the client configuration.
That is why, for example, it is difficult to use the generated configuration code for multi teneancy. It cannot not be used for that scenario.

Describe the solution you'd like

I would generate a properties class (as recommended by Spring) with all setting options and inject them into the configuration class.
https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html

Describe alternatives you've considered

Alternatively @Value could be used, but is not recommended.

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 generated Spring Cloud client configuration and reviewing Spring Boot's external-configuration guidance linked in the issue. The change is complete when generated configuration exposes overridable token and authorization URLs through a properties class suitable for multi-tenancy.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.