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

Adding web_message flow #500

Merged
merged 3 commits into from
Sep 18, 2017
Merged

Adding web_message flow #500

merged 3 commits into from
Sep 18, 2017

Conversation

luisrudge
Copy link
Contributor

No description provided.

@luisrudge luisrudge added this to the v8-Next milestone Sep 1, 2017
Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

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

👍

it('inits IframeHandler with correct params', function(done) {
stub(IframeHandler.prototype, 'init', function() {
expect(this.url).to.be(
'https://me.auth0.com/authorize?client_id=...&response_type=token&redirect_uri=http%3A%2F%2Fpage.com%2Fcallback&from=transaction-manager&response_mode=web_message&prompt=none'
Copy link
Contributor

Choose a reason for hiding this comment

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

query params shouldn't have a specific order. You should be testing URLs with a util class that given an url extracts host, domain, path (array), query and hash params (map).

@luisrudge luisrudge merged commit b1d563a into master Sep 18, 2017
@luisrudge luisrudge deleted the feature-webmessage-flow branch September 18, 2017 16:01
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.

2 participants