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

SecureCredentialsManager: Allow to pass scope and minTTL #369

Merged
merged 6 commits into from
Nov 4, 2020

Conversation

lbalmaceda
Copy link
Contributor

Changes

This PR improves the feature parity with iOS' CredentialManager class. Now developers can specify a reduced scope for when the tokens expire and need to be refreshed. And also a minimum time to live that the received tokens must have.

In order to add support for this, a new method was introduced. The old functionality remains the same.

Non breaking update

A test was included to check that current users of the SecureCredentialsManager are not "logged out" if the access token's expires_at value was not previously stored. The test is named shouldHaveValidCredentialsDuringMigrationWhenAccessTokenExpiresAtValueWasNotSaved

References

Relates to #349

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. Since this library has unit testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage

  • This change adds integration test coverage

  • This change has been tested on the latest version of the platform/language or why not

Checklist

@lbalmaceda lbalmaceda added CH: Added medium Medium review labels Nov 2, 2020
@lbalmaceda lbalmaceda added this to the v1-Next milestone Nov 2, 2020
@lbalmaceda lbalmaceda requested a review from a team as a code owner November 2, 2020 21:49
Copy link
Contributor

@Widcket Widcket left a comment

Choose a reason for hiding this comment

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

Left some comments.

Widcket
Widcket previously approved these changes Nov 3, 2020
Copy link
Contributor

@Widcket Widcket left a comment

Choose a reason for hiding this comment

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

LGTM, just pointed out a typo

…aseCredentialsManager.java

Co-authored-by: Rita Zerrizuela <[email protected]>
@lbalmaceda lbalmaceda merged commit 0ba67aa into master Nov 4, 2020
@lbalmaceda lbalmaceda deleted the feat-scm-ttl branch November 4, 2020 11:51
@lbalmaceda lbalmaceda modified the milestones: v1-Next, 1.29.0 Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Added medium Medium review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants