Skip to content

Conversation

@aborem
Copy link
Collaborator

@aborem aborem commented Aug 11, 2025

Closes #18

State as arg: When adding pardner to pardner-site, I realized it's necessary to instantiate a transfer service with an existing state variable defined, so I added that as an argument to the constructor.

Configuring scope: requests_oauthlib always sends requests with scopes separated with a space, but Strava (for example) specifies the scopes need to be comma-separated.

Adding default logic to base class: The fetch_token and authorization_url methods will almost always have the same functionality regardless of service, so I filled them out in the base class as well.

Tests: extracted common test fixtures and moved some tests to base transfer service test file.

warn_return_any = true
strict_optional = true
disallow_incomplete_defs = true
exclude_gitignore = true
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's set as this by default

@aborem aborem requested a review from alexbainter August 11, 2025 18:56
@aborem aborem merged commit a4c8d63 into main Aug 12, 2025
1 check passed
@aborem aborem deleted the aborem/strava-oauth-methods branch August 12, 2025 21:39
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.

Write Strava transfer service class's authorization methods

3 participants