Skip to content
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

Add PKCE support #2652

Merged
merged 6 commits into from
Oct 20, 2020
Merged

Add PKCE support #2652

merged 6 commits into from
Oct 20, 2020

Conversation

DASPRiD
Copy link
Contributor

@DASPRiD DASPRiD commented Sep 22, 2020

This is a small change to support PKCE with authentication code authorization.

Closes #1653
Closes #2154

@develohpanda
Copy link
Contributor

Thanks for the PR @DASPRiD! Could you please take a look at the breaking tests? Please mark as ready to review again once fixed up. Thanks!

@develohpanda develohpanda marked this pull request as draft October 12, 2020 12:11
@DASPRiD DASPRiD marked this pull request as ready for review October 12, 2020 13:26
Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

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

Apologies for the delayed review! Thank you for working through this feature, I'm looking forward to get it in. 😄

A couple of questions and one minor change, but otherwise LGTM. 👏

id="use-pkce"
onClick={onChange}
value={authentication.usePkce}
title={authentication.usePkce ? 'Disable PKCE' : 'Enable PKCE'}>
Copy link
Contributor

@develohpanda develohpanda Oct 13, 2020

Choose a reason for hiding this comment

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

Strange, it seems the Button component doesn't use the title prop for anything.

It might have been removed accidentally because there are a lot of instances that provide the title prop. No need to change this line, we should fix button to consume it. 😄

This is more a note, no need to action it in this PR.

…-code.js

Co-authored-by: Opender Singh <opender94@gmail.com>
Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

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

LGTM

…-code.js

Co-authored-by: Opender Singh <opender94@gmail.com>
@DASPRiD
Copy link
Contributor Author

DASPRiD commented Oct 13, 2020

LGTM

Your suggested change broke prettier D:

@DASPRiD
Copy link
Contributor Author

DASPRiD commented Oct 13, 2020

Fixed the prettier report. For some reason the MacOS build is failing now, but that seems to be build server related… shrugs

@develohpanda
Copy link
Contributor

Fixed the prettier report. For some reason the MacOS build is failing now, but that seems to be build server related… shrugs

No probs, I'll have a look at what's breaking there, should be fine though.

@develohpanda develohpanda merged commit 294777b into Kong:develop Oct 20, 2020
@et1975
Copy link

et1975 commented Feb 11, 2021

Can anyone confirm if this impl works with Azure AD?

EDIT: Confirmed myself, make sure to specify Credentials: In Request Body though!

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.

Support "code_challenge" with OAuth2 Auth Code Feature Request: Support Proof Key for Code Exchange (PKCE)
4 participants