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: use authentication strategy for configuring node sdk auth #23

Merged
merged 4 commits into from
Jan 10, 2024

Conversation

markphelps
Copy link
Contributor

try out strategy pattern for configuring authentication to hopefully make it more extendable

@markphelps markphelps requested a review from a team as a code owner January 10, 2024 15:25
authenticate(): Promise<Map<string, string>>;
}

export class ClientTokenAuthentication implements AuthenticationStrategy {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Im not sure what the idiomatic naming convention is here, should we prefix everything exported with Flipt or not? cc @yquansah

Copy link
Contributor

Choose a reason for hiding this comment

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

@markphelps This is correct here, no flipt prefix needed!

Copy link
Contributor

@yquansah yquansah left a comment

Choose a reason for hiding this comment

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

Yes, I like it. I want to do the same sort of abstraction for Java and Python too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants