Skip to content

Adds endpoint for non-revocable session token upgrade #2646

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

Merged
merged 1 commit into from
Sep 9, 2016

Conversation

flovilmart
Copy link
Contributor

@flovilmart flovilmart commented Sep 2, 2016

Better support for upgrading to revocable session after migration has occurred.

Fixes #2255

@codecov-io
Copy link

codecov-io commented Sep 2, 2016

Current coverage is 92.16% (diff: 93.33%)

Merging #2646 into master will increase coverage by 0.08%

@@             master      #2646   diff @@
==========================================
  Files            99         99          
  Lines         12113      12166    +53   
  Methods        1488       1495     +7   
  Messages          0          0          
  Branches       1996       1999     +3   
==========================================
+ Hits          11154      11213    +59   
+ Misses          959        953     -6   
  Partials          0          0          

Powered by Codecov. Last update f6516a1...e855c1a

@ghost
Copy link

ghost commented Sep 2, 2016

@flovilmart updated the pull request - view changes

@flovilmart flovilmart force-pushed the revocable-session-endpoint branch from 0138070 to e855c1a Compare September 2, 2016 20:01
@flovilmart flovilmart added this to the 2.2.19 milestone Sep 3, 2016
// handle the upgradeToRevocableSession path on it's own
if (info.sessionToken &&
req.url === '/upgradeToRevocableSession' &&
info.sessionToken.indexOf('r:') != 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't the presence of r: in the session token indicate non-legacy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's why != 0 as if it's revocable, it's gonna be at that index.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah doh, I misread :)

@flovilmart flovilmart merged commit 340eb46 into master Sep 9, 2016
@flovilmart flovilmart deleted the revocable-session-endpoint branch September 9, 2016 18:48
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.

4 participants