eclipse / microprofile-open-api

Microprofile open api
Apache License 2.0
131 stars 81 forks source link

Extension not supported for OAuthFlow #502

Closed mathis-m closed 2 years ago

mathis-m commented 2 years ago

It should be possible to provide extension x-tokenName to an oAuthFlow:

eg:

@SecurityScheme(
        type = SecuritySchemeType.OAUTH2,
        flows = @OAuthFlows(
                authorizationCode = @OAuthFlow(
                        authorizationUrl = "https://accounts.google.com/o/oauth2/auth",
                        tokenUrl = "https://oauth2.googleapis.com/token",
                        extensions= @Extensions({
                                @Extension(name = "x-tokenName", value = "id_token")
                        }),
                        scopes = {
                                @OAuthScope(
                                        name = "openid"
                                ),
                                @OAuthScope(
                                        name = "profile"
                                ),
                                @OAuthScope(
                                        name = "email"
                                )
                        }
                )
        )
),
MikeEdgar commented 2 years ago

+1, but closing as a duplicate of #387. Please re-open if you disagree.