Skip to content

Conversation

@thedoctor
Copy link

This PR (discussed in #96) adds support for a boolean additionalParameter called skipTokenExchange which will allow users to retrieve the OAuth authorization_code before it's exchanged for an access_token and id_token.

This is necessary for e.g. using this library in an application with a backend server that needs to access a user resource via client_secret (as opposed to the serverless OIDC flow).

thedoctor and others added 4 commits April 11, 2018 14:59
* Changes required for compilation (updated react-native)

* If 'skipTokenExchange' is provided in the addlParameterMap and is a boolean 'true' value, do not execute the token exchange process, just return the code, state, and redirect_uri over the bridge

* Added the alternate return type for 'authorize'

* remove runtime arguments check

* test

* squash this

* squash me

* [iOS] Expose option to skip token request
handle errors on skipTokenExchange callback
@kadikraman
Copy link
Contributor

Thanks for the PR! I'm working on making this production-ready, I'll merge it when I'm ready to make a PR to change the API to the format we discussed.

@kadikraman kadikraman mentioned this pull request Jun 19, 2018
2 tasks
@kadikraman kadikraman changed the base branch from master to v3.0.0 June 19, 2018 14:06
@kadikraman kadikraman merged commit 1d56eec into FormidableLabs:v3.0.0 Jun 20, 2018
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