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

feat: support relative redirect uri - OKTA-324356 #503

Merged

Conversation

shuowu
Copy link
Contributor

@shuowu shuowu commented Oct 7, 2020

resolves: okta/okta-vue#19

expect(util.toAbsoluteUrl(url, baseUrl)).toEqual('http://fake.com/relative');
});

it('should return correct url when relative url without "/" and baseurl with trialing "/"', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "trailing"

expect(util.toAbsoluteUrl(url, baseUrl)).toEqual('http://fake.com/relative');
});

it('should return correct url when baseUrl has trialing "/"', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "trailing"

@codecov-io
Copy link

Codecov Report

Merging #503 into master will increase coverage by 0.36%.
The diff coverage is 93.93%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #503      +/-   ##
==========================================
+ Coverage   90.47%   90.83%   +0.36%     
==========================================
  Files          31       33       +2     
  Lines        1574     1767     +193     
  Branches      344      391      +47     
==========================================
+ Hits         1424     1605     +181     
- Misses        150      162      +12     
Impacted Files Coverage Δ
lib/types/Token.ts 100.00% <ø> (ø)
lib/types/api.ts 0.00% <0.00%> (ø)
lib/util.ts 73.58% <63.63%> (-0.59%) ⬇️
lib/token.ts 94.67% <91.66%> (-0.21%) ⬇️
lib/AuthStateManager.ts 93.54% <93.54%> (ø)
lib/TokenManager.ts 97.61% <98.24%> (+0.59%) ⬆️
lib/OktaAuthBase.ts 83.33% <100.00%> (+0.98%) ⬆️
lib/PromiseQueue.ts 100.00% <100.00%> (ø)
lib/browser/browser.ts 95.20% <100.00%> (+2.13%) ⬆️
lib/constants.ts 100.00% <100.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f37218b...91ee599. Read the comment docs.

@shuowu-okta shuowu-okta merged commit d3cb262 into master Oct 7, 2020
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.

Redirect URI should allow for relative urls
4 participants