这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@albundy83
Copy link
Contributor

A simple way to enable PKCE secure workflow.

I also imagine to totally overwrite client_kwargs parameters by passing a OAUTH2_CLIENT_KWARGS parameter.
Or even just pass a OAUTH2_PKCE that will enable a new client_kwargs with code_challenge_method and response_type correctly set.

Signed-off-by: Grégoire Bellon-Gervais <gregoire.bellon-gervais@docaposte.fr>
Signed-off-by: Grégoire Bellon-Gervais <gregoire.bellon-gervais@docaposte.fr>
Signed-off-by: Grégoire Bellon-Gervais <gregoire.bellon-gervais@docaposte.fr>
Signed-off-by: Grégoire Bellon-Gervais <gregoire.bellon-gervais@docaposte.fr>
Signed-off-by: Grégoire Bellon-Gervais <gregoire.bellon-gervais@docaposte.fr>
Copy link
Contributor

@khushboovashi khushboovashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me. Please add test cases for the same.
Reference: pgadmin/browser/tests/test_oauth2_with_mocking.py

Have you been able to test the code manually?

@albundy83
Copy link
Contributor Author

Yes, I have deployed it in Kubernetes using pgadmin release 9.5 and I have overridden oauth2.py using a configMap, it works perfectly :)
I will try to add tests, I will use link from here as inspiration.

Signed-off-by: Grégoire Bellon-Gervais <gregoire.bellon-gervais@docaposte.fr>
Signed-off-by: Grégoire Bellon-Gervais <gregoire.bellon-gervais@docaposte.fr>
Signed-off-by: Grégoire Bellon-Gervais <gregoire.bellon-gervais@docaposte.fr>
@albundy83 albundy83 requested a review from khushboovashi July 14, 2025 17:27
@khushboovashi khushboovashi merged commit 13ade4c into pgadmin-org:master Jul 15, 2025
32 checks passed
@albundy83 albundy83 deleted the pkce_support branch July 15, 2025 06:53
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.

2 participants