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(rust): Add traits for generalizing the token strategy #67

Merged
merged 4 commits into from
Jan 15, 2024

Conversation

yquansah
Copy link
Contributor

@yquansah yquansah commented Jan 15, 2024

In the other SDKs we are generalizing the AuthenticationStrategy as we might support more in the future, and the semantics of how they can get generated can vary from one to the next.

This PR adds support for generalizing the AuthenticationStrategy for the rust client.

Closes: #64.

@yquansah yquansah requested a review from a team as a code owner January 15, 2024 18:41
@@ -44,6 +37,6 @@ impl FliptClient {

impl Default for FliptClient {
fn default() -> Self {
Self::new(Config::default()).unwrap()
Self::new::<ClientTokenAuthentication>(Config::default()).unwrap()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we might want a None authentication strategy and make that the default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@markphelps Haha yeah that was what I was thinking. Should have posed that question here. I added it.

@yquansah yquansah requested a review from markphelps January 15, 2024 19:26
@yquansah yquansah merged commit e4b898d into main Jan 15, 2024
6 checks passed
@yquansah yquansah deleted the rust-traits branch January 15, 2024 19:52
This was referenced Jan 15, 2024
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.

[FLI-778] Make Auth Scheme a trait or provideable somehow for Rust SDK
2 participants