Skip to content

Conversation

@davemurphysf
Copy link
Contributor

Description

The purpose of this PR is to expose/return the codeVerifier value that is used in the request when authenticating against a service that uses/requires PKCE and an authorization code is going to be being passed to a server to exchange for tokens. Both Google and Microsoft recommend using PKCE, and if you do, they require passing the code_verifier in the code exchange leg. For both Android and iOS, I implemented minimal changes to either create and pass the codeVerifier down to the existing library (Android) or just return/expose a value that was already being used (iOS).

…id. Return it in Authorize response only when `skipCodeExchange` == true.
…ed to `authorize` response conditionally when `skipCodeExchange` == true.
@davemurphysf davemurphysf changed the title Return codeVerifier value when both skipCodeExchange=true and usePKCE=true Return codeVerifier value when both skipCodeExchange=true and usePKCE=true Feb 10, 2021
Copy link
Contributor

@kadikraman kadikraman left a comment

Choose a reason for hiding this comment

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

Thanks a lot adding this!

@kadikraman kadikraman merged commit 669cbc5 into FormidableLabs:main Feb 13, 2021
@kadikraman
Copy link
Contributor

Published in v6.1.0 🚀

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