[ 
https://issues.apache.org/jira/browse/CXF-9175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-9175:
------------------------------
    Fix Version/s: 4.1.5
                   3.6.10
                   4.0.11

> support OAuth2 config in OpenApiFeature
> ---------------------------------------
>
>                 Key: CXF-9175
>                 URL: https://issues.apache.org/jira/browse/CXF-9175
>             Project: CXF
>          Issue Type: Improvement
>    Affects Versions: 4.1.3
>            Reporter: Gaëtan Pitteloud
>            Priority: Major
>              Labels: openapi
>             Fix For: 4.1.5, 3.6.10, 4.0.11
>
>
> The OpenApiFeature could support a way to configure OAuth2 as specified in 
> [https://swagger.io/docs/open-source-tools/swagger-ui/usage/oauth2/]
> Proposal:
>  # New SwaggerOAuth2Config data class with all properties defined on the 
> above swagger page (clientId, clientSecret, ...)
>  # Existing SwaggerUiConfig contains a new field of type SwaggerOAuth2Config, 
> so that OAuth2 can be configured while creating the OpenApiFeature
>  # While serving swagger-initializer.js resource, the existing 
> SwaggerUiService reads that config and injects the SwaggerOAuth2Config as 
> json into a new initOAuth() method before rendering the js resource. This is 
> similar to the existing behavior for injecting the URL in case 
> queryConfigEnabled is false.
> PR [https://github.com/apache/cxf/pull/2724]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to