Add Revoke Access Token Feature to the API #1511
Labels
priority: p4
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
According to section III.D.2.c in the YouTube API Services - Developer Policies a program that uses the API must be able to programmatically revoke the access token to a user's channel. However, I am not able to find support for revoking access using the API. It took me a long time to find any documentation that shows how it can be done and it is at the very bottom of the page OAuth 2.0 for Mobile & Desktop Apps and shows an example using curl to http post the token to a specific url.
If it was not for the "programmatically" part we could just open the Google security settings page in the users default browser (easy using java.awt.Desktop) and let the user revoke it. The example of revoking linked above shows it can be done but leaves multiple challenges to all API users.
I think one of the purposes of the Java API is so we developers do not need to think about the token or manually build requests.
I have tried searching through the entire API after a revoke feature and the only thing I found is the comment "// We were unable to get a new access token (e.g. it may have been revoked)"
I think it should work something like this, where the focus is on what happens afterwards
compared to where the majority of the work is to send the request
The text was updated successfully, but these errors were encountered: