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

Fixed client ID and redirect URL query items not being passed in nonfederated clearSession() #188

Merged
merged 1 commit into from
Feb 21, 2018

Conversation

Rypac
Copy link
Contributor

@Rypac Rypac commented Feb 20, 2018

As documented in issue #187, if no query items are present in the URL components when constructing
the clear session URL, the client ID and redirect URL query items are not added to the URL. This results in the web auth clear session never calling back successfully from the SFAuthenticationSession.

This change ensures that the client ID and redirect URL are always added to the clear session URL in the situation where the federated query item is not present.

If no query items are present in the URL components when constructing
the clear session URL, the client ID and redirect URL query items were
not added to the URL. This results in the web auth clear session never
calling back successfully.

This change ensures that the client ID and redirect URL are always
added to the clear session URL.
Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

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

This looks fine to me.

@cocojoe
Copy link
Member

cocojoe commented Feb 21, 2018

I couldn't find a good way to test either, which is a bit annoying now as would have caught this. One way would be to have a mock SFAuthenticationSession, however would need to open up the class to allow for passing of this object.

@cocojoe cocojoe changed the title Fix client ID and redirect URL query items not being included in clear session URL Fixed client ID and redirect URL query items not being passed in nonfederated clearSession() Feb 21, 2018
@cocojoe cocojoe added this to the v1-Next milestone Feb 21, 2018
@cocojoe cocojoe merged commit 770303b into auth0:master Feb 21, 2018
@cocojoe cocojoe modified the milestones: v1-Next, 1.10.1 Mar 9, 2018
@cocojoe cocojoe mentioned this pull request Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants