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: Add Authenticated Datafile Support #222

Merged
merged 11 commits into from
Jun 22, 2020
Merged

feat: Add Authenticated Datafile Support #222

merged 11 commits into from
Jun 22, 2020

Conversation

msohailhussain
Copy link
Contributor

@msohailhussain msohailhussain commented Jun 16, 2020

Summary

  • Adds support for Authenticated Datafiles.
  • Added a HttpClient wrapper for HttpProjectConfigManager.

Test plan

Added new unit tests
FSC is passing here.
https://travis-ci.com/github/optimizely/fullstack-sdk-compatibility-suite/builds/171678195

@msohailhussain msohailhussain marked this pull request as ready for review June 16, 2020 18:26
@msohailhussain msohailhussain requested a review from a team as a code owner June 16, 2020 18:26
@msohailhussain msohailhussain removed their assignment Jun 16, 2020
@msohailhussain
Copy link
Contributor Author

msohailhussain commented Jun 16, 2020

https://github.com/optimizely/csharp-testapp/pull/65
Please merge this PR first.

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

Minor comments. Will let @pawels-optimizely have the final say

@@ -28,34 +28,64 @@ public class HttpProjectConfigManager : PollingProjectConfigManager
{
private string Url;
private string LastModifiedSince = string.Empty;

private string AuthenticatedDatafileToken = string.Empty;
Copy link
Contributor

Choose a reason for hiding this comment

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

Call it datafileAuthToken

private HttpProjectConfigManager(TimeSpan period, string url, TimeSpan blockingTimeout, bool autoUpdate, ILogger logger, IErrorHandler errorHandler)
: base(period, blockingTimeout, autoUpdate, logger, errorHandler)
{
Url = url;
}

private HttpProjectConfigManager(TimeSpan period, string url, TimeSpan blockingTimeout, bool autoUpdate, ILogger logger, IErrorHandler errorHandler, string authDatafileToken)
Copy link
Contributor

Choose a reason for hiding this comment

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

datafileAuthToken

Copy link

@pawels-optimizely pawels-optimizely left a comment

Choose a reason for hiding this comment

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

LGTM, addressed some questions offline ( NET40 && NET35 compatibility and manual tests)

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.

3 participants