Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Start simplifying bearer token interface #530

Closed
wants to merge 6 commits into from
Closed

Conversation

hadley
Copy link
Collaborator

@hadley hadley commented Mar 5, 2021

The bearer token is no longer cached; it's not an expensive operation to retrieve it, it's app specific, and the user should be storing in a variable anyway. A bearer token is (nearly) equivalent to having the client app and secret, so I've made it harder to expose by accident with a new print method, and made it more difficult to use rtweets default app.

The tests currently fail because invalidate_bearer() doesn't work, probably because I don't understand the asymmetry between getting an access token and invalidating an access token.

Fixes #387

hadley added 4 commits March 5, 2021 08:45
The bearer token is no longer cached; it's not an expensive operation to retrieve it, it's app specific, and the user should be storing in a variable anyway. A bearer token is (nearly) equivalent to having the client app and secret, so I've made it harder to expose by accident with a new print method, and made it more difficult to use rtweets default app.

The tests currently fail because invalidate_bearer() doesn't work, probably because I don't understand the asymmetry between getting an access token and invalidating an access token.

Fixes #387
@hadley
Copy link
Collaborator Author

hadley commented Mar 5, 2021

Still no luck getting bearer token invalidation to work 😞. But the existing invalidate_bearer() function doesn't work either, so it's not like this PR has made things worse.

@hadley hadley marked this pull request as ready for review March 5, 2021 17:28
@hadley hadley mentioned this pull request Mar 6, 2021
@hadley hadley closed this Mar 8, 2021
@llrs llrs mentioned this pull request Mar 22, 2021
@llrs llrs deleted the bearer-token branch July 23, 2022 14:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Confusion about bearer tokens
1 participant