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

2334 - Add ttl to get_access_token. #2896

Merged

Conversation

jhugman
Copy link
Contributor

@jhugman jhugman commented Apr 1, 2020

Fixes #2334.

Adds an optional ttl parameter to kotlin and swift interfaces, to limit the time that tokens are cached.

The FFI uses a zero as a default parameter.

This is not expected to be a breaking change for the iOS and Android.

Pull Request checklist

  • Quality: This PR builds and tests run cleanly
    • automation/all_tests.sh runs to completion and produces no failures
    • Note: For changes that need extra cross-platform testing, consider adding [ci full] to the PR title.
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry in CHANGES_UNRELEASED.md or an explanation of why it does not need one
    • Any breaking changes to Swift or Kotlin binding APIs are noted explicitly
  • [ ] Dependencies: This PR follows our dependency management guidelines
    • Any new dependencies are accompanied by a summary of the due dilligence applied in selecting them.

@jhugman jhugman force-pushed the jhugman/2334-add-ttl-to-get-access-token branch from 7ec224e to 7cd4bff Compare April 1, 2020 19:12
Copy link
Contributor

@eoger eoger left a comment

Choose a reason for hiding this comment

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

Thanks for the patch, I think we should figure out if we want to pass that TTL to the server first (instead of keeping it local)?

CHANGES_UNRELEASED.md Show resolved Hide resolved
components/fxa-client/src/oauth.rs Outdated Show resolved Hide resolved
components/fxa-client/src/oauth.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@eoger eoger left a comment

Choose a reason for hiding this comment

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

r+ with CI passing, thanks so much for the patch @jhugman!

@jhugman jhugman force-pushed the jhugman/2334-add-ttl-to-get-access-token branch 3 times, most recently from 222382a to c5d7da8 Compare April 8, 2020 15:21
Fixes mozilla#2334.

Adds an optional `ttl` parameter to kotlin and swift interfaces, to limit the time that tokens are cached.

The FFI uses a `zero` as a default parameter, but this is not exposed to either side of the boundary.

This is not expected to be a breaking change for the iOS and Android.
@jhugman jhugman force-pushed the jhugman/2334-add-ttl-to-get-access-token branch from c5d7da8 to 1ecf3cb Compare April 8, 2020 15:36
@eoger eoger merged commit f39ad2f into mozilla:master Apr 8, 2020
@jhugman jhugman deleted the jhugman/2334-add-ttl-to-get-access-token branch April 8, 2020 16:38
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.

Let callers configure oauth token TTL
3 participants