Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

fix[okta-react]: Retain search and hash on ImplicitCallback redirect #197

Merged
merged 3 commits into from
May 3, 2018

Conversation

robertjd
Copy link
Contributor

@robertjd robertjd commented May 2, 2018

This PR is based on #175 and closes #175 #174

This PR adds a test commit and runs the test in our travis environment.

@robertjd robertjd requested a review from jmelberg-okta May 2, 2018 00:06
Copy link
Contributor

@jmelberg-okta jmelberg-okta left a comment

Choose a reason for hiding this comment

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

Glad we're getting this change in!

@@ -14,11 +14,11 @@ import { browser, element, by, ExpectedConditions } from 'protractor';

export class ProtectedPage {
navigateTo() {
return browser.get('/protected');
return browser.get('/protected?foo=bar#baz');
Copy link
Contributor

Choose a reason for hiding this comment

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

If possible, lets try and keep the same page objects throughout our front-end integrations (as we want to use shared specs in the future).

Can this be updated to /protected/foo?state=bar? This will allow us to test:

  1. Nested paths
  2. Retained query params.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd propose /protected/foo?state=bar#baz then because I also want to assert we preserve fragments (we had issues in the past where they were removed, I think it was an authJS issue that got resolved)

Pallavi Shankar and others added 3 commits May 3, 2018 14:11
Saves full referrer location object on login
Redirects to referrer location object from ImplicitCallback

Resolves: #174
* Assert that query strings and hash fragments are persisted on callback
* Modify existing test to use the root app page, otherwise it conflicts with the changes to the protected page object
@robertjd robertjd force-pushed the rd-fix-callback-referrer branch from 99767ea to 5500815 Compare May 3, 2018 21:11
@robertdamphousse-okta robertdamphousse-okta merged commit c4651f5 into master May 3, 2018
@robertdamphousse-okta robertdamphousse-okta deleted the rd-fix-callback-referrer branch May 3, 2018 21:24
@robertjd robertjd mentioned this pull request May 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants