Skip to content

Commit

Permalink
Added token.getWithRedirect and token.parseFromUrl
Browse files Browse the repository at this point in the history
Resolves: OKTA-94711
  • Loading branch information
lboyette-okta committed Jul 21, 2016
1 parent b13a9b2 commit 2ecc743
Show file tree
Hide file tree
Showing 8 changed files with 311 additions and 146 deletions.
7 changes: 7 additions & 0 deletions lib/clientBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,15 @@ function OktaAuthBuilder(args) {
sdk.token = {
getWithoutPrompt: util.bind(token.getWithoutPrompt, sdk, sdk),
getWithPopup: util.bind(token.getWithPopup, sdk, sdk),
getWithRedirect: util.bind(token.getWithRedirect, sdk, sdk),
parseFromUrl: util.bind(token.parseFromUrl, sdk, sdk),
decode: util.bind(token.decodeToken, sdk)
};

// This is exposed so we can set window.location in our tests
sdk.token.getWithRedirect._setLocation = function(url) {
window.location = url;
};
}

var proto = OktaAuthBuilder.prototype;
Expand Down
Loading

0 comments on commit 2ecc743

Please sign in to comment.