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

Made code responses return the actual time that a token is still valid #778

Closed
wants to merge 4 commits into from

Conversation

exop-it
Copy link

@exop-it exop-it commented Jan 16, 2016

I've spent the last hour debugging what turned out to be a problem with Doorkeeper.

If the reuse_access_token option is configured, then code responses will always return the token's initial expires_in value instead of the remaining time the token is still valid. This PR fixes that ;)

@tute
Copy link
Contributor

tute commented Jan 18, 2016

Thank you! Can you please add notes to the NEWS.md file, and add a regression test? Thanks again!

@@ -0,0 +1,32 @@
require 'spec_helper'

module Doorkeeper::OAuth

Choose a reason for hiding this comment

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

Use nested module/class definitions instead of compact style.

@irminsul
Copy link
Contributor

Sure, here you go.

@tute tute closed this in 56bfa57 Jan 21, 2016
@tute
Copy link
Contributor

tute commented Jan 21, 2016

Thank you! Merged in.

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