Skip to content

Add Proof Key for Code Exchange support - #149

Open
frederikmillingpytlick wants to merge 1 commit into
swaggo:masterfrom
praxisdigital:feature/pkce-v1
Open

frederikmillingpytlick wants to merge 1 commit into
swaggo:masterfrom
praxisdigital:feature/pkce-v1

Conversation

@frederikmillingpytlick

Copy link
Copy Markdown

Describe the PR
Similar to the issue #243 in the gin-swagger repo, and swaggo/swag#871:

Is your feature request related to a problem? Please describe.
OAuth2 clients that only support Authorization Code Flow with PKCE do not work with the current feature set of echo-swagger.

Describe the solution
Add Proof Key for Code Exchange support. There is a flag for it in Swagger UI 3.24.0+. The flag in Swagger UI is usePkceWithAuthorizationCodeGrant.
In the corresponding Pull Request I added an additional attribute to the OAuthConfig struct called "UsePkce" which configures the boolean parameter for "usePkceWithAuthorizationCodeGrant" in the "initOAuth" part of the index template.
With this small change, the auth flow works as expected.

Relation issue
#99

@frederikmillingpytlick frederikmillingpytlick changed the title chore: retractg echo-swagger version 1.5.0 Add Proof Key for Code Exchange support Aug 6, 2026
@frederikmillingpytlick

Copy link
Copy Markdown
Author

@ubogdan perhaps you could take a look when you get the time? :)

Restore PKCE support needed for Keycloak authorization-code clients.
Based on upstream PR swaggo#100 (closed unmerged).

Branch is based on v1.5.2 (module github.com/swaggo/echo-swagger, Echo v4)
so it remains usable as a replace target for Echo v4 consumers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant