Skip to content

Extension not supported for OAuthFlow #502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mathis-m opened this issue Nov 30, 2021 · 1 comment
Closed

Extension not supported for OAuthFlow #502

mathis-m opened this issue Nov 30, 2021 · 1 comment

Comments

@mathis-m
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants